aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2004-03-17 00:07:43 +0000
committerMax Horn2004-03-17 00:07:43 +0000
commit4a15a80eb3fad960e391d7de04edfae16a03f2ea (patch)
tree186dfaaa39409c70e9773ac5b0403013f8bcf2ca /gui
parentfd52b3a3c05c61dadaf2ed0b5d109e58419d4436 (diff)
downloadscummvm-rg350-4a15a80eb3fad960e391d7de04edfae16a03f2ea.tar.gz
scummvm-rg350-4a15a80eb3fad960e391d7de04edfae16a03f2ea.tar.bz2
scummvm-rg350-4a15a80eb3fad960e391d7de04edfae16a03f2ea.zip
Fix for bug #917532 (GUI: BrowserDialog return value)
svn-id: r13320
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp8
-rw-r--r--gui/options.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 0ab29f97c9..50a1a4340a 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -399,7 +399,7 @@ void LauncherDialog::addGame() {
// game, e.g. 'Monkey German' and 'Monkey English') and set default
// options for that game.
- if (_browser->runModal()) {
+ if (_browser->runModal() > 0) {
// User made his choice...
FilesystemNode *dir = _browser->getResult();
FSList *files = dir->listDir(FilesystemNode::kListFilesOnly);
@@ -476,7 +476,7 @@ void LauncherDialog::addGame() {
// Display edit dialog for the new entry
EditGameDialog editDialog(domain, result);
- if (editDialog.runModal()) {
+ if (editDialog.runModal() > 0) {
// User pressed OK, so make changes permanent
// Write config to disk
@@ -496,7 +496,7 @@ void LauncherDialog::addGame() {
void LauncherDialog::removeGame(int item) {
MessageDialog alert("Do you really want to remove this game configuration?", "Yes", "No");
- if (alert.runModal() == 1) {
+ if (alert.runModal() > 0) {
// Remove the currently selected game from the list
assert(item >= 0);
ConfMan.removeGameDomain(_domains[item]);
@@ -522,7 +522,7 @@ void LauncherDialog::editGame(int item) {
if (gameId.isEmpty())
gameId = _domains[item];
EditGameDialog editDialog(_domains[item], GameDetector::findGame(gameId));
- if (editDialog.runModal()) {
+ if (editDialog.runModal() > 0) {
// User pressed OK, so make changes permanent
// Write config to disk
diff --git a/gui/options.cpp b/gui/options.cpp
index cb42735246..c96f23dc67 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -427,7 +427,7 @@ void GlobalOptionsDialog::close() {
void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
switch (cmd) {
case kChooseSaveDirCmd:
- if (_browser->runModal()) {
+ if (_browser->runModal() > 0) {
// User made his choice...
FilesystemNode *dir = _browser->getResult();
_savePath->setLabel(dir->path());