aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-09-13 01:20:24 +0200
committerMax <post@wickenrode.com>2015-09-25 17:16:02 +0200
commitd910bdc047aae992bf23ef2db2ac4f502aabd2b5 (patch)
tree86cd6d2a6ad9d49593d0ecf392702e435ac9e785
parent558180dbdca8116963661efc4e35c6c4a0c5808f (diff)
downloadsequelpro-d910bdc047aae992bf23ef2db2ac4f502aabd2b5.tar.gz
sequelpro-d910bdc047aae992bf23ef2db2ac4f502aabd2b5.tar.bz2
sequelpro-d910bdc047aae992bf23ef2db2ac4f502aabd2b5.zip
Fix an issue where the window title would not be properly updated after closing an unconnected tab (fixes #2221)
-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];