1
0
Fork 0
forked from len0rd/rockbox

Fix voicefile / talkfile generation windows not updating the displayed settings if the user used the "change" button.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16462 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-03-01 13:42:14 +00:00
parent dfac61e89c
commit 05f24a1ec4
4 changed files with 20 additions and 15 deletions

View file

@ -36,7 +36,7 @@ void CreateVoiceWindow::change()
Config *cw = new Config(this,4);
cw->setSettings(settings);
cw->show();
connect(cw, SIGNAL(settingsUpdated()), this, SIGNAL(settingsUpdated()));
connect(cw, SIGNAL(settingsUpdated()), this, SLOT(settingsUpdated()));
}
void CreateVoiceWindow::accept()
@ -58,7 +58,6 @@ void CreateVoiceWindow::accept()
voicecreator->setMountPoint(settings->mountpoint());
voicecreator->setTargetId(settings->curTargetId());
voicecreator->setLang(lang);
voicecreator->setProxy(m_proxy);
voicecreator->setWavtrimThreshold(wvThreshold);
//start creating
@ -66,11 +65,19 @@ void CreateVoiceWindow::accept()
}
/** @brief set settings object
*/
void CreateVoiceWindow::setSettings(RbSettings* sett)
{
settings = sett;
settingsUpdated();
}
/** @brief update displayed settings
*/
void CreateVoiceWindow::settingsUpdated(void)
{
// fill in language combobox
QStringList languages = settings->allLanguages();
languages.sort();