From 9a3397f2d18a58953bdeae5d2eddb0afd85f18d9 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 14 Jun 2010 10:32:58 +0000 Subject: - 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 --- Source/SPWindowController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source') 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]; -- cgit v1.2.3