diff options
author | Max <post@wickenrode.com> | 2015-09-13 01:20:24 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-09-13 01:20:24 +0200 |
commit | b958ab043a666b2f545b46c2486e0f8fd3d301b1 (patch) | |
tree | 9f83666eb0594d27c19621bc9d57c6e598265b57 /Source | |
parent | fe050dfb404ccd15d34ef46b27274545d05e9c58 (diff) | |
download | sequelpro-b958ab043a666b2f545b46c2486e0f8fd3d301b1.tar.gz sequelpro-b958ab043a666b2f545b46c2486e0f8fd3d301b1.tar.bz2 sequelpro-b958ab043a666b2f545b46c2486e0f8fd3d301b1.zip |
Fix an issue where the window title would not be properly updated after closing an unconnected tab (fixes #2221)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConnectionController.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 3176fb2f..0340fd8e 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> @@ -1628,7 +1629,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]; |