project_files/HedgewarsMobile/Classes/InGameMenuViewController.m
changeset 3922 44804043b691
parent 3829 81db3c85784b
child 3924 2a9ace189288
--- a/project_files/HedgewarsMobile/Classes/InGameMenuViewController.m	Fri Oct 01 13:56:11 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/InGameMenuViewController.m	Sat Oct 02 04:23:32 2010 +0200
@@ -24,6 +24,7 @@
 #import "PascalImports.h"
 #import "CommodityFunctions.h"
 #import "SDL_sysvideo.h"
+#import "SDL_uikitkeyboard.h"
 
 @implementation InGameMenuViewController
 @synthesize menuList;
@@ -177,8 +178,10 @@
         [UIView commitAnimations];
     }
 
-    if ([actionSheet cancelButtonIndex] != buttonIndex)
+    if ([actionSheet cancelButtonIndex] != buttonIndex) {
+        [[NSNotificationCenter defaultCenter] postNotificationName:@"remove overlay" object:nil];
         HW_terminate(NO);
+    }
 }
 
 @end