aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-08-03 23:10:59 +0000
committerrowanbeentje <rowan@beent.je>2010-08-03 23:10:59 +0000
commit71002662ef004b798766906bce9e51ad359e1745 (patch)
tree0fd2858d2932620ea4bb50f63401432180e25e89 /Source/SPWindowController.m
parentb1b0bb0fcb687b06d0af23b972396eb6f412852f (diff)
downloadsequelpro-71002662ef004b798766906bce9e51ad359e1745.tar.gz
sequelpro-71002662ef004b798766906bce9e51ad359e1745.tar.bz2
sequelpro-71002662ef004b798766906bce9e51ad359e1745.zip
- Fix menu item and window close issues after a tab is dragged to a new window, including for single tabs in windows moved by their tabs
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r--Source/SPWindowController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index 324e2244..65c1c330 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -401,7 +401,8 @@
[draggedDocument setParentWindow:[tabBarControl window]];
[draggedDocument didBecomeActiveTabInWindow];
- // Update isProcessing observation
+ // Update window controller's active tab, and update the document's isProcessing observation
+ [[[tabBarControl window] windowController] updateSelectedTableDocument];
[draggedDocument removeObserver:[draggedFromWindow windowController] forKeyPath:@"isProcessing"];
[[[tabBarControl window] windowController] _updateProgressIndicatorForItem:tabViewItem];
}