summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/installtalkwindow.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-29 21:46:12 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-29 21:46:12 +0000
commit6fd7573d32b92816e5691e707907e5bcc7c8db1e (patch)
treefde89a4523caa2dc31271f17823710e724da7b0e /rbutil/rbutilqt/installtalkwindow.cpp
parentab58fd5fdbeabfbc301606ad9d8c6940d4602030 (diff)
downloadrockbox-6fd7573d32b92816e5691e707907e5bcc7c8db1e.tar.gz
rockbox-6fd7573d32b92816e5691e707907e5bcc7c8db1e.tar.bz2
rockbox-6fd7573d32b92816e5691e707907e5bcc7c8db1e.zip
Connect close signal earlier so the talk window also closes upon error confirmation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14529 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/installtalkwindow.cpp')
-rw-r--r--rbutil/rbutilqt/installtalkwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/installtalkwindow.cpp b/rbutil/rbutilqt/installtalkwindow.cpp
index cc2def6ab1..60a1a310c3 100644
--- a/rbutil/rbutilqt/installtalkwindow.cpp
+++ b/rbutil/rbutilqt/installtalkwindow.cpp
@@ -68,11 +68,12 @@ void InstallTalkWindow::accept()
{
logger = new ProgressLoggerGui(this);
logger->show();
+ connect(logger,SIGNAL(closed()),this,SLOT(close()));
QString folderToTalk = ui.lineTalkFolder->text();
QString pathEncoder = userSettings->value("encbin").toString();
QString pathTTS = userSettings->value("ttsbin").toString();
-
+
if(!QFileInfo(folderToTalk).isDir())
{
logger->addItem(tr("The Folder to Talk is wrong!"),LOGERROR);
@@ -122,7 +123,6 @@ void InstallTalkWindow::accept()
talkcreator->setStripExtensions(ui.StripExtensions->isChecked());
talkcreator->createTalkFiles(logger);
- connect(logger,SIGNAL(closed()),this,SLOT(close()));
}