diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-23 19:33:06 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-23 19:33:06 +0000 |
commit | ed2d754e46bd6a104f1b093b979720727e95dcb5 (patch) | |
tree | 7edc96255734d21fc886945b83d31a1000f43468 /Source/TableSource.m | |
parent | e3dd3a976de60bb6dfcaf7643c376e574a6a3906 (diff) | |
download | sequelpro-ed2d754e46bd6a104f1b093b979720727e95dcb5.tar.gz sequelpro-ed2d754e46bd6a104f1b093b979720727e95dcb5.tar.bz2 sequelpro-ed2d754e46bd6a104f1b093b979720727e95dcb5.zip |
• fixed several problems for alerting an error sheet inside of a didEndSelector: of an other sheet
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r-- | Source/TableSource.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m index 648d53f6..130f9d54 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -849,7 +849,7 @@ fetches the result as an array with a dictionary for each row in it [tablesListInstance setContentRequiresReload:YES]; [tableDataInstance resetColumnData]; } else { - [self performSelector:@selector(showErrorSheetWithTitle:) + [self performSelector:@selector(showErrorSheetWith:) withObject:[NSArray arrayWithObjects:NSLocalizedString(@"Error", @"error"), [NSString stringWithFormat:NSLocalizedString(@"Couldn't remove field %@.\nMySQL said: %@", @"message of panel when field cannot be removed"), [[tableFields objectAtIndex:[tableSourceView selectedRow]] objectForKey:@"Field"], @@ -871,7 +871,7 @@ fetches the result as an array with a dictionary for each row in it if ( [[mySQLConnection getLastErrorMessage] isEqualToString:@""] ) { [self loadTable:selectedTable]; } else { - [self performSelector:@selector(showErrorSheetWithTitle:) + [self performSelector:@selector(showErrorSheetWith:) withObject:[NSArray arrayWithObjects:NSLocalizedString(@"Error", @"error"), [NSString stringWithFormat:NSLocalizedString(@"Couldn't remove index.\nMySQL said: %@", @"message of panel when index cannot be removed"), [mySQLConnection getLastErrorMessage]], @@ -889,7 +889,7 @@ fetches the result as an array with a dictionary for each row in it * Show Error sheet (can be called from inside of a endSheet selector) * via [self performSelector:@selector(showErrorSheetWithTitle:) withObject: afterDelay:] */ --(void)showErrorSheetWithTitle:(id)error +-(void)showErrorSheetWith:(id)error { // error := first object is the title , second the message, only one button OK NSBeginAlertSheet([error objectAtIndex:0], NSLocalizedString(@"OK", @"OK button"), |