From f4957e259b41f2ce4f1eaac6e0f75b82d34995b7 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 18 Jun 2010 00:45:03 +0000 Subject: Enable the "Sequel Pro" tab style by default, and include the following fixes: - Fix display of the overflow menu - Improve tab spacing and internal layout - Improve tab names for documents to correctly show the database for background documents in additional cases - Update strings files --- Source/SPDatabaseDocument.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index a36591e8..6b2b22f1 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -3541,11 +3541,13 @@ [tabTitle appendString:[self name]]; } - // If a database is selected, add to the window - and other tabs if host is the same but table is set + // If a database is selected, add to the window - and other tabs if host is the same but db different or table is not set if ([self database]) { [windowTitle appendFormat:@"/%@", [self database]]; if (frontTableDocument == self + || ![frontTableDocument getConnection] || [[frontTableDocument name] isNotEqualTo:[self name]] + || [[frontTableDocument database] isNotEqualTo:[self database]] || ![[self table] length]) { if ([tabTitle length]) [tabTitle appendString:@"/"]; -- cgit v1.2.3