diff options
author | Max Horn | 2009-12-15 08:19:34 +0000 |
---|---|---|
committer | Max Horn | 2009-12-15 08:19:34 +0000 |
commit | 605037342be6c8dc40bd9c1380fd93727f3d3de3 (patch) | |
tree | 86b75ea24434e7c7ed9d838f4ee3b8a679c9d9b4 /gui/massadd.cpp | |
parent | f692015301e6122b7d071a0ce52c81faa6c3b69f (diff) | |
download | scummvm-rg350-605037342be6c8dc40bd9c1380fd93727f3d3de3.tar.gz scummvm-rg350-605037342be6c8dc40bd9c1380fd93727f3d3de3.tar.bz2 scummvm-rg350-605037342be6c8dc40bd9c1380fd93727f3d3de3.zip |
GUI: Fix some GUI hacks, add some comments, etc.
* Rename LauncherDialog::selectGame() to selectTarget()
* Get rid of the 'temp_selection' ConfMan entry hack
* Add some Doxygen comments
* Turn a printf(...) into a debug(1,...)
* Don't scroll around if 'Mass Add' is cancelled
svn-id: r46380
Diffstat (limited to 'gui/massadd.cpp')
-rw-r--r-- | gui/massadd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/massadd.cpp b/gui/massadd.cpp index 57ac9fc01f..8a1206ee31 100644 --- a/gui/massadd.cpp +++ b/gui/massadd.cpp @@ -139,7 +139,7 @@ void MassAddDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data sort(_games.begin(), _games.end(), GameTargetLess()); // Add all the detected games to the config for (GameList::iterator iter = _games.begin(); iter != _games.end(); ++iter) { - printf(" Added gameid '%s', desc '%s'\n", + debug(1, " Added gameid '%s', desc '%s'\n", (*iter)["gameid"].c_str(), (*iter)["description"].c_str()); (*iter)["gameid"] = addGameToConf(*iter); @@ -157,6 +157,7 @@ void MassAddDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data close(); } else if (cmd == kCancelCmd) { // User cancelled, so we don't do anything and just leave. + _games.clear(); close(); } else { Dialog::handleCommand(sender, cmd, data); |