aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-13 21:43:05 +0000
committerrowanbeentje <rowan@beent.je>2010-06-13 21:43:05 +0000
commit93d2314ef5bb924707fb0f19e31bb914cceb5d79 (patch)
treef4d79adbd8751247d72eb2720d7297ea6049657e /Source/SPDatabaseDocument.m
parent66de2bb747ac8d60a0be13d570a2d763857964ff (diff)
downloadsequelpro-93d2314ef5bb924707fb0f19e31bb914cceb5d79.tar.gz
sequelpro-93d2314ef5bb924707fb0f19e31bb914cceb5d79.tar.bz2
sequelpro-93d2314ef5bb924707fb0f19e31bb914cceb5d79.zip
Improvements to tab dragging and switching:
- Attempt to preserve toolbar visibility settings - Fix dragging on previously background tabs - When dragging a tab, show the tab bar in all windows to that windows containing a single tab can be added to - Fix window sizing when creating new windows via a tab drag - Improve window representation when dragging a tab off a window, and fix placement when creating a new window following mouse release
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index d5ebb24c..e0ba899e 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -3909,7 +3909,9 @@
{
// Update the toolbar
+ BOOL toolbarVisible = ![parentWindow toolbar] || [[parentWindow toolbar] isVisible];
[parentWindow setToolbar:mainToolbar];
+ if (!toolbarVisible) [[parentWindow toolbar] setVisible:NO];
// Update the window's title and represented document
[self updateWindowTitle:self];