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
This commit is contained in:
parent
f692015301
commit
605037342b
4 changed files with 52 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue