diff options
author | rowanbeentje <rowan@beent.je> | 2011-05-29 18:20:56 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-05-29 18:20:56 +0000 |
commit | 8d7f66b1d81feb622c7ddd9fe6ba495e10e74d24 (patch) | |
tree | e244a10956ad45f9d0e5f45e8d440805ab1a907b /Source/SPTablesList.m | |
parent | e345cd9a9a4d825132c97ac023101e538ea911d3 (diff) | |
download | sequelpro-8d7f66b1d81feb622c7ddd9fe6ba495e10e74d24.tar.gz sequelpro-8d7f66b1d81feb622c7ddd9fe6ba495e10e74d24.tar.bz2 sequelpro-8d7f66b1d81feb622c7ddd9fe6ba495e10e74d24.zip |
- Ensure the correct table name is displayed when an error occurs deleting an item from a filtered list; this addresses Issue #1062
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r-- | Source/SPTablesList.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index db470d31..e81f78b1 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -2092,7 +2092,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [alert addButtonWithTitle:NSLocalizedString(@"Stop", @"stop button")]; } [alert setMessageText:NSLocalizedString(@"Error", @"error")]; - [alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Couldn't delete '%@'.\nMySQL said: %@", @"message of panel when an item cannot be deleted"), [tables objectAtIndex:currentIndex], [mySQLConnection getLastErrorMessage]]]; + [alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Couldn't delete '%@'.\n\nMySQL said: %@", @"message of panel when an item cannot be deleted"), [filteredTables objectAtIndex:currentIndex], [mySQLConnection getLastErrorMessage]]]; [alert setAlertStyle:NSWarningAlertStyle]; if ([indexes indexLessThanIndex:currentIndex] == NSNotFound) { [alert beginSheetModalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self didEndSelector:nil contextInfo:nil]; |