diff options
-rw-r--r-- | gui/launcher.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 14c98a1eb6..85c040cc09 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -652,8 +652,10 @@ void LauncherDialog::addGame() { if (alert.runModal() == GUI::kMessageOK && _browser->runModal() > 0) { MassAddDialog massAddDlg(_browser->getResult()); - // Save current game position, so on cancel cursor will move back - ConfMan.set("temp_selection", _domains[_list->getSelected()], ConfigManager::kApplicationDomain); + if (_list->getList().size() > 0) { + // Save current game position, so on cancel cursor will move back + ConfMan.set("temp_selection", _domains[_list->getSelected()], ConfigManager::kApplicationDomain); + } massAddDlg.runModal(); |