Fixed assertion when starting mass add and there are no games currently in the game list

svn-id: r41293
This commit is contained in:
Filippos Karapetis 2009-06-06 19:04:09 +00:00
parent b43df63b1c
commit 6c44c7764c

View File

@ -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();