From 59d2d86e16cee78e0f46d11f6d6c05dea103a8f5 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 8 Mar 2010 16:39:25 +0000 Subject: 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. --- Source/TableContent.m | 1 + 1 file changed, 1 insertion(+) (limited to 'Source') 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; } -- cgit v1.2.3