summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-05-09 18:49:49 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-05-09 18:49:49 +0000
commitf6ba4cbe0d23b89df33fafbb87379cf6d6abb4c9 (patch)
tree86feca90bba5ca0a41a2a82b81f261145f3ae3c4 /rbutil
parent370455cc4159c2a780bb4c917b42490f6512f7df (diff)
downloadrockbox-f6ba4cbe0d23b89df33fafbb87379cf6d6abb4c9.tar.gz
rockbox-f6ba4cbe0d23b89df33fafbb87379cf6d6abb4c9.tar.bz2
rockbox-f6ba4cbe0d23b89df33fafbb87379cf6d6abb4c9.zip
rbutil: show logger windows earlier in bootloader install, to catch all errors.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 3a594ef0ad..7c52f1f7cf 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -618,7 +618,7 @@ void RbUtilQt::installBootloaderBtn()
// create logger
logger = new ProgressLoggerGui(this);
-
+ logger->show();
installBootloader();
}
@@ -724,6 +724,7 @@ void RbUtilQt::installBootloader()
// installation.
m_error = true;
logger->addItem(tr("Bootloader installation aborted"), LOGINFO);
+ logger->setFinished();
return;
}
// open dialog to browse to of file
@@ -732,6 +733,7 @@ void RbUtilQt::installBootloader()
tr("Select firmware file"), QDir::homePath());
if(!QFileInfo(offile).isReadable()) {
logger->addItem(tr("Error opening firmware file"), LOGERROR);
+ logger->setFinished();
m_error = true;
return;
}
@@ -745,8 +747,7 @@ void RbUtilQt::installBootloader()
connect(bl, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int)));
connect(bl, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int)));
- // show logger and start install.
- logger->show();
+ // start install.
if(!backupDestination.isEmpty()) {
if(!bl->backup(backupDestination)) {
if(QMessageBox::warning(this, tr("Backup error"),