]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxID_EXIT for the "Quit" item in the exec sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Nov 2012 13:10:21 +0000 (13:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Nov 2012 13:10:21 +0000 (13:10 +0000)
This fixes the behaviour of the standard "Quit" menu item under OS X.

See #3204.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/exec/exec.cpp

index 6cdc3da450b50e46e08fb4a172a9f5f0c7a9c1d8..9c559a069595a33fa2540453c9cf4738d6909260 100644 (file)
@@ -312,8 +312,7 @@ enum
     Exec_TimerBg,
 
     // menu items
-    Exec_Quit = 100,
-    Exec_Kill,
+    Exec_Kill = 100,
     Exec_ClearLog,
     Exec_BeginBusyCursor,
     Exec_EndBusyCursor,
@@ -332,6 +331,7 @@ enum
     Exec_Flags_ShowConsole,
     Exec_Flags_NoEvents,
     Exec_About = wxID_ABOUT,
+    Exec_Quit = wxID_EXIT,
 
     // control ids
     Exec_Btn_Send = 1000,