project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
changeset 3663 8c28abf427f5
parent 3662 a44406f4369b
child 3697 d5b30d6373fc
--- a/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Thu Jul 22 03:08:17 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m	Thu Jul 22 12:47:32 2010 +0200
@@ -21,15 +21,15 @@
 #pragma mark View Lifecycle
 -(void) viewDidLoad {
     [super viewDidLoad];
-    
-    NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:SETTINGS_FILE()];
-    self.settingsDictionary = dictionary;
-    [dictionary release];
 }
 
 -(void) viewWillAppear:(BOOL)animated {
     [self.tableView setContentOffset:CGPointMake(0,0) animated:NO];
     
+    NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:SETTINGS_FILE()];
+    self.settingsDictionary = dictionary;
+    [dictionary release];
+
     [super viewWillAppear:animated];
 }