aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-14 10:32:58 +0000
committerrowanbeentje <rowan@beent.je>2010-06-14 10:32:58 +0000
commit9a3397f2d18a58953bdeae5d2eddb0afd85f18d9 (patch)
tree7db5dda980e22efa80765295d78847f0a8538ad5 /Source
parent5cb5315642a6b53f1cac66e8ae9489e117f47730 (diff)
downloadsequelpro-9a3397f2d18a58953bdeae5d2eddb0afd85f18d9.tar.gz
sequelpro-9a3397f2d18a58953bdeae5d2eddb0afd85f18d9.tar.bz2
sequelpro-9a3397f2d18a58953bdeae5d2eddb0afd85f18d9.zip
- Fix a crash when dragging/closing tabs after tab drags, caused by not updating the document's parent window controller after drags from window to window
Diffstat (limited to 'Source')
-rw-r--r--Source/SPWindowController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index 5b6b7732..1876d11a 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -284,8 +284,9 @@
// Update the old window
[[draggedFromWindow windowController] updateSelectedTableDocument];
- // Update the item's document's window
+ // Update the item's document's window and controller
[draggedDocument willResignActiveTabInWindow];
+ [draggedDocument setParentWindowController:[[tabBarControl window] windowController]];
[draggedDocument setParentWindow:[tabBarControl window]];
[draggedDocument didBecomeActiveTabInWindow];