aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-08 16:39:25 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-08 16:39:25 +0000
commit59d2d86e16cee78e0f46d11f6d6c05dea103a8f5 (patch)
treebf7c044114b7483731257b672f1531a103a04539
parenta7df2a8ceae2490299b271e949fa8f2308e196bd (diff)
downloadsequelpro-59d2d86e16cee78e0f46d11f6d6c05dea103a8f5.tar.gz
sequelpro-59d2d86e16cee78e0f46d11f6d6c05dea103a8f5.tar.bz2
sequelpro-59d2d86e16cee78e0f46d11f6d6c05dea103a8f5.zip
When cancelling a table sort operation remember to end the threaded task to ensure the bezel and spinner are removed from view. Fixes issue #570.
-rw-r--r--Source/TableContent.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 9dd7f983..bc040223 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -2853,6 +2853,7 @@
if ( ![[mySQLConnection getLastErrorMessage] isEqualToString:@""] ) {
SPBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, tableWindow, self, nil, nil, nil,
[NSString stringWithFormat:NSLocalizedString(@"Couldn't sort table. MySQL said: %@", @"message of panel when sorting of table failed"), [mySQLConnection getLastErrorMessage]]);
+ [tableDocumentInstance endTask];
[sortPool drain];
return;
}