aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-22 02:12:54 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-22 02:12:54 +0000
commitde9ddc82c305f187d6ab8802641eba9f2c90f0c1 (patch)
tree26ceb684e7c85fbaf093c97f30a45b4fd906ca39 /Source/TableDocument.m
parent7ead84b0868975752f445d1917bc693a5bf502b7 (diff)
downloadsequelpro-de9ddc82c305f187d6ab8802641eba9f2c90f0c1.tar.gz
sequelpro-de9ddc82c305f187d6ab8802641eba9f2c90f0c1.tar.bz2
sequelpro-de9ddc82c305f187d6ab8802641eba9f2c90f0c1.zip
During a session restore, before bailing because there is no matching table between those in the current database and that stored in the session data, remember to end the current task, otherwise the progress bezel will be displayed indefinitely while locking up the interface.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 98a231ab..d35e4684 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -528,6 +528,7 @@
NSArray *tables = [tablesListInstance tables];
if([tables indexOfObject:[spfSession objectForKey:@"table"]] == NSNotFound) {
+ [self endTask];
[taskPool drain];
return;
}