summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2016-01-08 23:56:27 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2016-08-15 20:14:25 +0200
commit40ce2b41331888d6284fff6e709789e939cc6a1a (patch)
tree52eb3f721c026b4d2190be38ae9ab91f2df36356 /rbutil/rbutilqt/rbutilqt.cpp
parente4af97300d5b08e48d9d282d5a7500cdfae4c251 (diff)
downloadrockbox-40ce2b41331888d6284fff6e709789e939cc6a1a.tar.gz
rockbox-40ce2b41331888d6284fff6e709789e939cc6a1a.tar.bz2
rockbox-40ce2b41331888d6284fff6e709789e939cc6a1a.zip
rbutil: add abort signal for bootloader install/uninstall
During the bootloader install/uninstall process, a signal is emitted when "Abort" button is pressed, the installers can attach this signal and cancel the process. Change-Id: I7f297b8031d7a2d93da0022081aaef03ef041baf
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 1444f4509d..8f4ee582d5 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -569,6 +569,8 @@ void RbUtilQt::uninstallBootloader(void)
connect(bl, SIGNAL(logItem(QString, int)), logger, SLOT(addItem(QString, int)));
connect(bl, SIGNAL(logProgress(int, int)), logger, SLOT(setProgress(int, int)));
connect(bl, SIGNAL(done(bool)), logger, SLOT(setFinished()));
+ // pass Abort button click signal to current installer
+ connect(logger, SIGNAL(aborted()), bl, SLOT(progressAborted()));
bl->uninstall();