From c26ee0ccb66b0f236623d1d1ed8c2c817e7cf915 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 13 Mar 2013 00:37:21 +0000 Subject: - Correctly reset document state for setting it from file/when duplicating tab, further addressing Issue #1619 --- Source/SPDatabaseDocument.m | 5 +++-- 1 file 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 -- cgit v1.2.3