aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-20 22:33:13 +0000
committerrowanbeentje <rowan@beent.je>2012-03-20 22:33:13 +0000
commit008b8291ebaf3042c7229350ca1c77a110f4b65d (patch)
treeafdf58bea6dfd92d852a92eaf98885969db328de /Source
parent5bdc94a1717113855661d1e532e6e809f5d95d80 (diff)
downloadsequelpro-008b8291ebaf3042c7229350ca1c77a110f4b65d.tar.gz
sequelpro-008b8291ebaf3042c7229350ca1c77a110f4b65d.tar.bz2
sequelpro-008b8291ebaf3042c7229350ca1c77a110f4b65d.zip
- When cancelling a sort on the table content view, don't display an error message
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index e0af1d54..9ba7446a 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -4220,7 +4220,7 @@
previousTableRowsCount = tableRowsCount;
[self loadTableValues];
- if ([mySQLConnection queryErrored]) {
+ if ([mySQLConnection queryErrored] && ![mySQLConnection lastQueryWasCancelled]) {
SPBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [tableDocumentInstance parentWindow], self, nil, nil,
[NSString stringWithFormat:NSLocalizedString(@"Couldn't sort table. MySQL said: %@", @"message of panel when sorting of table failed"), [mySQLConnection lastErrorMessage]]);
[tableDocumentInstance endTask];