From d910bdc047aae992bf23ef2db2ac4f502aabd2b5 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 13 Sep 2015 01:20:24 +0200 Subject: Fix an issue where the window title would not be properly updated after closing an unconnected tab (fixes #2221) --- Source/SPConnectionController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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]; -- cgit v1.2.3