[Scummvm-cvs-logs] SF.net SVN: scummvm:[38313] scummvm/trunk/gui

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sun Feb 15 23:07:19 CET 2009


Revision: 38313
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38313&view=rev
Author:   wjpalenstijn
Date:     2009-02-15 22:07:19 +0000 (Sun, 15 Feb 2009)

Log Message:
-----------
properly (re)select game after adding/editing domain name in launcher

Modified Paths:
--------------
    scummvm/trunk/gui/launcher.cpp
    scummvm/trunk/gui/options.h

Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2009-02-15 22:01:09 UTC (rev 38312)
+++ scummvm/trunk/gui/launcher.cpp	2009-02-15 22:07:19 UTC (rev 38313)
@@ -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/trunk/gui/options.h
===================================================================
--- scummvm/trunk/gui/options.h	2009-02-15 22:01:09 UTC (rev 38312)
+++ scummvm/trunk/gui/options.h	2009-02-15 22:07:19 UTC (rev 38313)
@@ -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