diff options
author | Kostas Nakos | 2008-08-13 19:32:25 +0000 |
---|---|---|
committer | Kostas Nakos | 2008-08-13 19:32:25 +0000 |
commit | 56c9e3ab04825845c6f6fd9af9f740a5a715c51a (patch) | |
tree | d44ad655d224f92d0f52c667f842f71c82f5f24c /backends/platform/wince/CEActionsSmartphone.cpp | |
parent | 5a54dc61a43a7f911a2ef230da9258e3b41fd691 (diff) | |
download | scummvm-rg350-56c9e3ab04825845c6f6fd9af9f740a5a715c51a.tar.gz scummvm-rg350-56c9e3ab04825845c6f6fd9af9f740a5a715c51a.tar.bz2 scummvm-rg350-56c9e3ab04825845c6f6fd9af9f740a5a715c51a.zip |
fix a small bug in the quit dialog
svn-id: r33844
Diffstat (limited to 'backends/platform/wince/CEActionsSmartphone.cpp')
-rw-r--r-- | backends/platform/wince/CEActionsSmartphone.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/platform/wince/CEActionsSmartphone.cpp b/backends/platform/wince/CEActionsSmartphone.cpp index dbcddac98c..87f73f5a66 100644 --- a/backends/platform/wince/CEActionsSmartphone.cpp +++ b/backends/platform/wince/CEActionsSmartphone.cpp @@ -179,7 +179,7 @@ CEActionsSmartphone::~CEActionsSmartphone() { } bool CEActionsSmartphone::perform(GUI::ActionType action, bool pushed) { - static bool keydialogrunning = false; + static bool keydialogrunning = false, quitdialog = false; if (!pushed) { switch (action) { @@ -250,12 +250,14 @@ bool CEActionsSmartphone::perform(GUI::ActionType action, bool pushed) { _CESystem->smartphone_rotate_display(); return true; case SMARTPHONE_ACTION_QUIT: - { + if (!quitdialog) { + quitdialog = true; GUI::MessageDialog alert(" Are you sure you want to quit ? ", "Yes", "No"); if (alert.runModal() == GUI::kMessageOK) _mainSystem->quit(); - return true; + quitdialog = false; } + return true; } return false; |