Permalink
Browse files

Fix bug with settings store and MultiValueSpecifier where value does …

…not get updated
  • Loading branch information...
1 parent 23e311c commit 03482e715ecfe2f017cde5b07599f2ff047f42a5 Marc-Etienne M.Léveillé committed Nov 11, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
@@ -570,7 +570,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
[newItemDict addEntriesFromDictionary: [_viewList objectAtIndex:kIASKSpecifierValuesViewControllerIndex]]; // copy the title and explain strings
targetViewController = [[IASKSpecifierValuesViewController alloc] initWithNibName:@"IASKSpecifierValuesView" bundle:nil];
- targetViewController.settingsStore = self.settingsStore;
+
// add the new view controller to the dictionary and then to the 'viewList' array
[newItemDict setObject:targetViewController forKey:@"viewController"];
[_viewList replaceObjectAtIndex:kIASKSpecifierValuesViewControllerIndex withObject:newItemDict];
@@ -582,6 +582,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
self.currentIndexPath = indexPath;
[targetViewController setCurrentSpecifier:specifier];
targetViewController.settingsReader = self.settingsReader;
+ targetViewController.settingsStore = self.settingsStore;
[[self navigationController] pushViewController:targetViewController animated:YES];
}
else if ([[specifier type] isEqualToString:kIASKPSSliderSpecifier]) {

0 comments on commit 03482e7

Please sign in to comment.