aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPConnectionController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index aca3e982..6941a498 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -52,6 +52,7 @@
#import "SPThreadAdditions.h"
#import "SPFavoriteColorSupport.h"
#import "SPNamedNode.h"
+#import "SPWindowController.h"
#import <SPMySQL/SPMySQL.h>
@@ -1623,7 +1624,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
if (![NSThread isMainThread]) return [[self onMainThread] _restoreConnectionInterface];
// Reset the window title
- [[dbDocument parentWindow] setTitle:[dbDocument displayName]];
+ [dbDocument updateWindowTitle:self];
[[dbDocument parentTabViewItem] setLabel:[dbDocument displayName]];
[[dbDocument parentTabViewItem] setColor:nil];