aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-05-29 18:20:56 +0000
committerrowanbeentje <rowan@beent.je>2011-05-29 18:20:56 +0000
commit8d7f66b1d81feb622c7ddd9fe6ba495e10e74d24 (patch)
treee244a10956ad45f9d0e5f45e8d440805ab1a907b
parente345cd9a9a4d825132c97ac023101e538ea911d3 (diff)
downloadsequelpro-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
-rw-r--r--Source/SPTablesList.m2
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];