1
0
Fork 0
forked from len0rd/rockbox

Explicitly set the dialog's result code for TTS / Encoder windows. Fixes an issue where one couldn't close the dialog anymore.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17766 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-06-23 20:08:22 +00:00
parent 9aa7ceb0df
commit 24bb08ddd3
2 changed files with 11 additions and 10 deletions

View file

@ -80,12 +80,12 @@ void EncExesGui::accept(void)
// sync settings
settings->sync();
this->close();
this->done(0);
}
void EncExesGui::reject(void)
{
this->close();
this->done(0);
}
void EncExesGui::reset()
@ -153,12 +153,12 @@ void EncRbSpeexGui::accept(void)
// sync settings
settings->sync();
this->close();
this->done(0);
}
void EncRbSpeexGui::reject(void)
{
this->close();
this->done(0);
}
void EncRbSpeexGui::reset()
@ -168,3 +168,4 @@ void EncRbSpeexGui::reset()
ui.complexity->setValue(defaultComplexity);
ui.narrowband->setChecked(Qt::Unchecked);
}

View file

@ -89,12 +89,12 @@ void TTSSapiGui::accept(void)
// sync settings
settings->sync();
this->close();
this->done(0);
}
void TTSSapiGui::reject(void)
{
this->close();
this->done(0);
}
void TTSSapiGui::updateVoices(QString language)
@ -182,12 +182,12 @@ void TTSExesGui::accept(void)
// sync settings
settings->sync();
this->close();
this->done(0);
}
void TTSExesGui::reject(void)
{
this->close();
this->done(0);
}