aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2008-11-18 01:56:03 +0000
committerrowanbeentje <rowan@beent.je>2008-11-18 01:56:03 +0000
commitc55412ca23dfba852f8bf4eae0c3249db32e90c8 (patch)
tree241eb72fb5a9e7a2d5f7863ff540e69962198d11
parent862396873ddb3d4017a5ab323ae0be6bded755b8 (diff)
downloadsequelpro-c55412ca23dfba852f8bf4eae0c3249db32e90c8.tar.gz
sequelpro-c55412ca23dfba852f8bf4eae0c3249db32e90c8.tar.bz2
sequelpro-c55412ca23dfba852f8bf4eae0c3249db32e90c8.zip
Slight cleanup of r195 following discussion with avenjamin
-rw-r--r--TableSource.m8
-rw-r--r--TablesList.h2
-rw-r--r--TablesList.m4
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