forked from len0rd/rockbox
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
This commit is contained in:
parent
d0f7a8181b
commit
b7931594f9
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue