aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowControllerDelegate.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/SPWindowControllerDelegate.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/SPWindowControllerDelegate.m')
-rw-r--r--Source/SPWindowControllerDelegate.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPWindowControllerDelegate.m b/Source/SPWindowControllerDelegate.m
index 47959f1b..3e94cebf 100644
--- a/Source/SPWindowControllerDelegate.m
+++ b/Source/SPWindowControllerDelegate.m
@@ -41,6 +41,7 @@
- (void)_updateProgressIndicatorForItem:(NSTabViewItem *)theItem;
- (void)_updateLineHidingViewState;
+- (void)_switchOutSelectedTableDocument:(SPDatabaseDocument *)newDoc;
@end
@@ -186,7 +187,7 @@
{
if ([[PSMTabDragAssistant sharedDragAssistant] isDragging]) return;
- selectedTableDocument = [tabViewItem identifier];
+ [self _switchOutSelectedTableDocument:[tabViewItem identifier]];
[selectedTableDocument didBecomeActiveTabInWindow];
if ([[self window] isKeyWindow]) [selectedTableDocument tabDidBecomeKey];