summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-01 22:21:57 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2007-08-01 22:21:57 +0000
commit0b08f41ae9671b1387cce7278857f17ec77b801f (patch)
tree1e52dbd8dbafba045ca9ae0a306a509a98d46df0
parentc5b52205954326e680ed679c47808433595f6f39 (diff)
downloadrockbox-0b08f41ae9671b1387cce7278857f17ec77b801f.tar.gz
rockbox-0b08f41ae9671b1387cce7278857f17ec77b801f.zip
If bootloader installation failed abort logger so the user needs to confirm the error only once.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14129 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/installbootloader.cpp9
-rw-r--r--rbutil/rbutilqt/installbootloader.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/installbootloader.cpp b/rbutil/rbutilqt/installbootloader.cpp
index e6dc302281..3a75304d86 100644
--- a/rbutil/rbutilqt/installbootloader.cpp
+++ b/rbutil/rbutilqt/installbootloader.cpp
@@ -30,6 +30,7 @@ void BootloaderInstaller::install(ProgressloggerInterface* dp)
30 m_dp = dp; 30 m_dp = dp;
31 m_install = true; 31 m_install = true;
32 m_dp->addItem(tr("Starting bootloader installation"),LOGINFO); 32 m_dp->addItem(tr("Starting bootloader installation"),LOGINFO);
33 connect(this, SIGNAL(done(bool)), this, SLOT(installEnded(bool)));
33 34
34 if(m_bootloadermethod == "gigabeatf") 35 if(m_bootloadermethod == "gigabeatf")
35 { 36 {
@@ -82,6 +83,7 @@ void BootloaderInstaller::uninstall(ProgressloggerInterface* dp)
82 m_dp = dp; 83 m_dp = dp;
83 m_install = false; 84 m_install = false;
84 m_dp->addItem(tr("Starting bootloader uninstallation"),LOGINFO); 85 m_dp->addItem(tr("Starting bootloader uninstallation"),LOGINFO);
86 connect(this, SIGNAL(done(bool)), this, SLOT(installEnded(bool)));
85 87
86 if(m_bootloadermethod == "gigabeatf") 88 if(m_bootloadermethod == "gigabeatf")
87 { 89 {
@@ -171,6 +173,13 @@ void BootloaderInstaller::updateDataReadProgress(int read, int total)
171} 173}
172 174
173 175
176void BootloaderInstaller::installEnded(bool error)
177{
178 (void) error;
179 m_dp->abort();
180}
181
182
174/************************************************** 183/**************************************************
175*** gigabeat secific code 184*** gigabeat secific code
176***************************************************/ 185***************************************************/
diff --git a/rbutil/rbutilqt/installbootloader.h b/rbutil/rbutilqt/installbootloader.h
index 5a3c02b117..55c415e0ca 100644
--- a/rbutil/rbutilqt/installbootloader.h
+++ b/rbutil/rbutilqt/installbootloader.h
@@ -65,6 +65,7 @@ private slots:
65 void updateDataReadProgress(int, int); 65 void updateDataReadProgress(int, int);
66 void downloadDone(bool); 66 void downloadDone(bool);
67 void downloadRequestFinished(int, bool); 67 void downloadRequestFinished(int, bool);
68 void installEnded(bool);
68 69
69 // gigabeat specific routines 70 // gigabeat specific routines
70 void gigabeatPrepare(); 71 void gigabeatPrepare();