cocoaTouch/popupMenuViewController.m
changeset 3113 2829ea0dd47c
parent 3091 9d05c8000ed4
--- a/cocoaTouch/popupMenuViewController.m	Sat Mar 27 15:48:59 2010 +0000
+++ b/cocoaTouch/popupMenuViewController.m	Sat Mar 27 16:57:18 2010 +0000
@@ -115,8 +115,10 @@
 }
 
 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex {
-	if ([actionSheet cancelButtonIndex] != buttonIndex)
-	    HW_terminate(NO);
+	if ([actionSheet cancelButtonIndex] != buttonIndex) {
+        [[NSNotificationCenter defaultCenter] postNotificationName:@"dismissPopover"  object:nil];
+        HW_terminate(NO);
+    }
 	else
         if (!isPaused) 
             HW_pause();