Permalink
Browse files

Fix crash when revisiting settings page

  • Loading branch information...
1 parent cb23fd0 commit 5592f26d1a17a3b49a4817960d782726af0211c6 @richard richard committed Sep 13, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 Classes/Settings/SettingsController.m
@@ -454,6 +454,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
- (void)resetAppData {
+ // Session. Clear the saved state
+ [[SessionManager instance] reset];
+
// Clear search
[[AppInstance() searchController] reset];
@@ -469,9 +472,6 @@ - (void)resetAppData {
// Reset last sync time
[[Settings instance] setLastSync:nil];
-
- // Session. Clear the saved state
- [[SessionManager instance] reset];
}
- (void)applyNewServerUrl:(NSString*)url {

0 comments on commit 5592f26

Please sign in to comment.