Permalink
Browse files

Fix: correctly refresh child panes

(bug introduced in pull request #103)
  • Loading branch information...
1 parent 23db2c0 commit bed56c6c69442fcff6c9ed07064b1d1d870d17c7 Ortwin Gentz committed Mar 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
@@ -95,6 +95,7 @@ - (void)setFile:(NSString *)file {
self.tableView.contentOffset = CGPointMake(0, 0);
self.settingsReader = nil; // automatically initializes itself
+ [self.tableView reloadData];
}
- (BOOL)isPad {

2 comments on commit bed56c6

Collaborator

diederich replied Mar 16, 2012

oh, nice catch. Guess this happens on reuse of the view controller.
Thanks!

Owner

futuretap replied Mar 16, 2012

Exactly. All child panes always showed the content of the first opened child pane. Then in combination with the reload code from last commit, it crashed when it tried to reload non existing cells.

Please sign in to comment.