mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
Fixed assertion when starting mass add and there are no games currently in the game list
svn-id: r41293
This commit is contained in:
parent
b43df63b1c
commit
6c44c7764c
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user