project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 4920 bc3c077e15a2
parent 4861 91f889289a47
child 4924 616b618814b5
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sat Feb 05 11:32:15 2011 +0300
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Sat Feb 05 15:45:44 2011 +0100
@@ -486,12 +486,10 @@
         if (HW_isPaused())
             HW_pauseToggle();
 
-        if (IS_IPAD()) {
-            [(InGameMenuViewController *)[[self popoverController] contentViewController] removeChat];
+        [self.popupMenu dismiss];
+        if (IS_IPAD())
             [self.popoverController dismissPopoverAnimated:YES];
-        } else {
-            [self.popupMenu dismiss];
-        }
+
         [self buttonReleased:nil];
     }
 }