From ee70457667b7480226b3af3bf3047e098a0344c5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 11 Aug 2004 21:49:58 +0000 Subject: Fix for bug #1007093 (GUI: removing game configuration from Launcher buggy); moral: either document how things work, or at least provide well named constants for certain return values... using the cheap way out here, i.e. method (b) :-) svn-id: r14557 --- backends/wince/CEActionsPocket.cpp | 2 +- backends/wince/CELauncherDialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/wince') diff --git a/backends/wince/CEActionsPocket.cpp b/backends/wince/CEActionsPocket.cpp index 8ae9c96509..f382cff80f 100644 --- a/backends/wince/CEActionsPocket.cpp +++ b/backends/wince/CEActionsPocket.cpp @@ -187,7 +187,7 @@ bool CEActionsPocket::perform(ActionType action, bool pushed) { return true; case POCKET_ACTION_QUIT: GUI::MessageDialog alert("Do you want to quit ?", "Yes", "No"); - if (alert.runModal() == 1) + if (alert.runModal() == GUI::kMessageOK) _mainSystem->quit(); return true; } diff --git a/backends/wince/CELauncherDialog.cpp b/backends/wince/CELauncherDialog.cpp index 351847b9b0..79c8d1faa1 100644 --- a/backends/wince/CELauncherDialog.cpp +++ b/backends/wince/CELauncherDialog.cpp @@ -156,7 +156,7 @@ void CELauncherDialog::automaticScanDirectory(const FilesystemNode *node) { void CELauncherDialog::addGame() { MessageDialog alert("Do you want to perform an automatic scan ?", "Yes", "No"); - if (alert.runModal() == 1 && _browser->runModal() > 0) { + if (alert.runModal() == kMessageOK && _browser->runModal() > 0) { // Clear existing domains ConfigManager::DomainMap &domains = (ConfigManager::DomainMap&)ConfMan.getGameDomains(); domains.clear(); -- cgit v1.2.3