project_files/HedgewarsMobile/Classes/RestoreViewController.m
changeset 6321 5a0416e5a6de
parent 6020 c792d4b3e080
child 6353 d8f62c805619
--- a/project_files/HedgewarsMobile/Classes/RestoreViewController.m	Fri Nov 11 01:18:19 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/RestoreViewController.m	Fri Nov 11 01:40:23 2011 +0100
@@ -36,14 +36,13 @@
 
     if (theButton.tag != 0) {
         [AudioManagerController playClickSound];
-        [self.parentViewController dismissModalViewControllerAnimated:NO];
         [[NSNotificationCenter defaultCenter] postNotificationName:@"launchRestoredGame" object:nil];
     } else {
         [AudioManagerController playBackSound];
         [defaults setObject:@"" forKey:@"savedGamePath"];
         [defaults synchronize];
-        [self.parentViewController dismissModalViewControllerAnimated:YES];
     }
+    [self.parentViewController dismissModalViewControllerAnimated:YES];
 }
 
 -(void) viewDidLoad {