aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-18 09:03:18 +0200
committerMax <post@wickenrode.com>2015-10-18 09:03:18 +0200
commitba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673 (patch)
tree1cb4bf35415923cb53247fcbb1b68c08a3d59a46 /Source/SPDatabaseDocument.m
parentbc61f825d02eac931b0bbfdebacc4ccb320a9237 (diff)
downloadsequelpro-ba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673.tar.gz
sequelpro-ba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673.tar.bz2
sequelpro-ba5b71d5bb64fdc40a4a9eaeb7867fdaea8a1673.zip
Fix a crash that could happen when exiting fullscreen mode on 10.11
(backport of d4641ec90fe1b50fca0256e26338d955290fd8b7)
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 6230fa51..898c19c3 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -6284,6 +6284,7 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase";
- (void)dealloc
{
+ NSAssert([NSThread isMainThread], @"Calling %s from a background thread is not supported!",__func__);
#ifndef SP_CODA /* Unregister observers */
// Unregister observers
[prefs removeObserver:self forKeyPath:SPDisplayTableViewVerticalGridlines];