diff options
author | rowanbeentje <rowan@beent.je> | 2013-03-13 00:37:21 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-03-13 00:37:21 +0000 |
commit | c26ee0ccb66b0f236623d1d1ed8c2c817e7cf915 (patch) | |
tree | 6be69380ff04581d9a1824cbb120e59e9ee55301 /Source/SPDatabaseDocument.m | |
parent | d27b44c2119875f603c175e928073bea218f66ff (diff) | |
download | sequelpro-c26ee0ccb66b0f236623d1d1ed8c2c817e7cf915.tar.gz sequelpro-c26ee0ccb66b0f236623d1d1ed8c2c817e7cf915.tar.bz2 sequelpro-c26ee0ccb66b0f236623d1d1ed8c2c817e7cf915.zip |
- Correctly reset document state for setting it from file/when duplicating tab, further addressing Issue #1619
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index ac7aa50e..e4f75610 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4541,9 +4541,10 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; [self updateWindowTitle:self]; - // Deselect all favorites on the connection controller. This will automatically - // clear and reset the connection state. + // Deselect all favorites on the connection controller, + // and clear and reset the connection state. [[connectionController favoritesOutlineView] deselectAll:connectionController]; + [connectionController updateFavoriteSelection:self]; // Suppress the possibility to choose an other connection from the favorites // if a connection should initialized by SPF file. Otherwise it could happen |