diff options
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index c57554aef3..78a836bf3a 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -403,6 +403,9 @@ void Config::updateTtsState(int index) | |||
403 | ui.configTTSstatus->setText(tr("Configuration INVALID")); | 403 | ui.configTTSstatus->setText(tr("Configuration INVALID")); |
404 | ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/dialog-error.png"))); | 404 | ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/dialog-error.png"))); |
405 | } | 405 | } |
406 | |||
407 | delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, | ||
408 | since that would delete the TTSBase instance on application exit*/ | ||
406 | } | 409 | } |
407 | 410 | ||
408 | void Config::updateEncState() | 411 | void Config::updateEncState() |
@@ -699,6 +702,8 @@ void Config::configTts() | |||
699 | EncTtsCfgGui gui(this,tts,TTSBase::getTTSName(ui.comboTts->itemData(index).toString())); | 702 | EncTtsCfgGui gui(this,tts,TTSBase::getTTSName(ui.comboTts->itemData(index).toString())); |
700 | gui.exec(); | 703 | gui.exec(); |
701 | updateTtsState(ui.comboTts->currentIndex()); | 704 | updateTtsState(ui.comboTts->currentIndex()); |
705 | delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, | ||
706 | since that would delete the TTSBase instance on application exit*/ | ||
702 | } | 707 | } |
703 | 708 | ||
704 | void Config::testTts() | 709 | void Config::testTts() |
@@ -745,6 +750,9 @@ void Config::testTts() | |||
745 | #else | 750 | #else |
746 | QSound::play(filename); | 751 | QSound::play(filename); |
747 | #endif | 752 | #endif |
753 | |||
754 | delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject, | ||
755 | since that would delete the TTSBase instance on application exit*/ | ||
748 | } | 756 | } |
749 | 757 | ||
750 | void Config::configEnc() | 758 | void Config::configEnc() |