diff options
-rw-r--r-- | TableSource.m | 8 | ||||
-rw-r--r-- | TablesList.h | 2 | ||||
-rw-r--r-- | TablesList.m | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/TableSource.m b/TableSource.m index 9259a0b4..0d9e2bf4 100644 --- a/TableSource.m +++ b/TableSource.m @@ -385,7 +385,7 @@ opens alertsheet and asks for confirmation // [[NSNotificationCenter defaultCenter] postNotificationName:@"SelectedTableStatusHasChanged" object:self]; // Mark the content table for refresh - [tablesListInstance setContentRequiresReload]; + [tablesListInstance setContentRequiresReload:YES]; } else { [sender selectItemWithTitle:tableType]; NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil, @@ -647,7 +647,7 @@ returns YES if no row is beeing edited and nothing has to be written to db [self loadTable:selectedTable]; // Mark the content table for refresh - [tablesListInstance setContentRequiresReload]; + [tablesListInstance setContentRequiresReload:YES]; return YES; } else { @@ -703,7 +703,7 @@ returns YES if no row is beeing edited and nothing has to be written to db [self loadTable:selectedTable]; // Mark the content table for refresh - [tablesListInstance setContentRequiresReload]; + [tablesListInstance setContentRequiresReload:YES]; } else { NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil, [NSString stringWithFormat:NSLocalizedString(@"Couldn't remove field %@.\nMySQL said: %@", @"message of panel when field cannot be removed"), @@ -924,7 +924,7 @@ Having validated a drop, perform the field/column reordering to match. [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self]; // Mark the content table for refresh - [tablesListInstance setContentRequiresReload]; + [tablesListInstance setContentRequiresReload:YES]; return YES; } diff --git a/TablesList.h b/TablesList.h index bc360434..7693f94c 100644 --- a/TablesList.h +++ b/TablesList.h @@ -74,7 +74,7 @@ - (BOOL)statusLoaded; // Setter methods -- (void)setContentRequiresReload; +- (void)setContentRequiresReload:(BOOL)reload; //tableView datasource methods - (int)numberOfRowsInTableView:(NSTableView *)aTableView; diff --git a/TablesList.m b/TablesList.m index 270cd49b..83a36a06 100644 --- a/TablesList.m +++ b/TablesList.m @@ -346,9 +346,9 @@ returns YES if table status has already been loaded /* Mark the content table for refresh when it's next switched to */ -- (void)setContentRequiresReload +- (void)setContentRequiresReload:(BOOL)reload { - contentLoaded = NO; + contentLoaded = !reload; } #pragma mark Datasource methods |