[Scummvm-cvs-logs] SF.net SVN: scummvm:[38315] scummvm/branches/branch-0-13-0/gui
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Sun Feb 15 23:15:48 CET 2009
Revision: 38315
http://scummvm.svn.sourceforge.net/scummvm/?rev=38315&view=rev
Author: wjpalenstijn
Date: 2009-02-15 22:15:48 +0000 (Sun, 15 Feb 2009)
Log Message:
-----------
from trunk r38313: properly (re)select game after adding/editing domain name in launcher
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/gui/launcher.cpp
scummvm/branches/branch-0-13-0/gui/options.h
Modified: scummvm/branches/branch-0-13-0/gui/launcher.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/gui/launcher.cpp 2009-02-15 22:14:04 UTC (rev 38314)
+++ scummvm/branches/branch-0-13-0/gui/launcher.cpp 2009-02-15 22:15:48 UTC (rev 38315)
@@ -703,7 +703,7 @@
// Update the ListWidget, select the new item, and force a redraw
updateListing();
- selectGame(domain);
+ selectGame(editDialog.getDomain());
draw();
} else {
// User aborted, remove the the new domain again
@@ -773,7 +773,7 @@
}
void LauncherDialog::editGame(int item) {
- // Set game specifc options. Most of these should be "optional", i.e. by
+ // Set game specific options. Most of these should be "optional", i.e. by
// default set nothing and use the global ScummVM settings. E.g. the user
// can set here an optional alternate music volume, or for specific games
// a different music driver etc.
@@ -790,8 +790,9 @@
// Write config to disk
ConfMan.flushToDisk();
- // Update the ListWidget and force a redraw
+ // Update the ListWidget, reselect the edited game and force a redraw
updateListing();
+ selectGame(editDialog.getDomain());
draw();
}
}
Modified: scummvm/branches/branch-0-13-0/gui/options.h
===================================================================
--- scummvm/branches/branch-0-13-0/gui/options.h 2009-02-15 22:14:04 UTC (rev 38314)
+++ scummvm/branches/branch-0-13-0/gui/options.h 2009-02-15 22:15:48 UTC (rev 38315)
@@ -53,6 +53,7 @@
void open();
void close();
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
+ const Common::String& getDomain() const { return _domain; }
virtual void reflowLayout();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list