summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/themesinstallwindow.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-07-01 14:58:39 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-07-01 14:58:39 +0200
commitb7931594f9b9a55ba58b4087ab08a4e820e66e7b (patch)
treee2c08838c51f82d12cb76c605b5f3cf72a92ded9 /rbutil/rbutilqt/themesinstallwindow.cpp
parentd0f7a8181bb761ce627b10b002c5906129664804 (diff)
downloadrockbox-b7931594f9b9a55ba58b4087ab08a4e820e66e7b.tar.gz
rockbox-b7931594f9b9a55ba58b4087ab08a4e820e66e7b.tar.bz2
rockbox-b7931594f9b9a55ba58b4087ab08a4e820e66e7b.zip
Handle no selected themes properly.
When installing themes without any themes selected show a notice in the log and continue instead of stopping. Change-Id: Ieeb03e4656b041ce1dda25b2c44b6b6f0aa0ca80
Diffstat (limited to 'rbutil/rbutilqt/themesinstallwindow.cpp')
-rw-r--r--rbutil/rbutilqt/themesinstallwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/themesinstallwindow.cpp b/rbutil/rbutilqt/themesinstallwindow.cpp
index 9218a085d0..1b10ce9e6c 100644
--- a/rbutil/rbutilqt/themesinstallwindow.cpp
+++ b/rbutil/rbutilqt/themesinstallwindow.cpp
@@ -321,7 +321,8 @@ void ThemesInstallWindow::accept(void)
void ThemesInstallWindow::install()
{
if(ui.listThemes->selectedItems().size() == 0) {
- this->close();
+ logger->addItem(tr("No themes selected, skipping"), LOGINFO);
+ emit done(false);
return;
}
QStringList themes;