Sync all themes with improvements of mass dialog. Fixed list positioning

svn-id: r41264
This commit is contained in:
Eugene Sandulenko 2009-06-06 17:50:30 +00:00
parent f2547eb62c
commit b49d23b898
7 changed files with 25 additions and 7 deletions

View file

@ -631,15 +631,18 @@ 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);
massAddDlg.runModal();
// Update the ListWidget and force a redraw
updateListing();
// Set cursor to first detected game
selectGame(ConfMan.get("temp_selection", ConfigManager::kApplicationDomain));
ConfMan.removeKey("temp_selection", ConfigManager::kApplicationDomain);
// Update the ListWidget and force a redraw
updateListing();
draw();
}