aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r--Source/SPWindowController.m29
1 files changed, 6 insertions, 23 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index d03762d8..5b6b7732 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -329,31 +329,9 @@
// if cell is not selected show full title as tooltip
} else {
- SPDatabaseDocument *doc = [tabViewItem identifier];
- NSMutableString *tabTitle;
-
- // Determine name details
- NSString *pathName = @"";
- if ([[[doc fileURL] path] length] && ![doc isUntitled])
- pathName = [NSString stringWithFormat:@"%@ — ", [[[doc fileURL] path] lastPathComponent]];
-
- if ([doc getConnection] == nil)
- return [NSString stringWithFormat:@"%@%@", pathName, @"Sequel Pro"];
-
- tabTitle = [NSMutableString string];
- [tabTitle appendString:[doc name]];
- if ([doc database]) {
- if ([tabTitle length]) [tabTitle appendString:@"/"];
- [tabTitle appendString:[doc database]];
- }
- if ([[doc table] length]) {
- if ([tabTitle length]) [tabTitle appendString:@"/"];
- [tabTitle appendString:[doc table]];
- }
- return tabTitle;
+ return [[[tabViewItem identifier] parentWindow] title];
}
- return @"";
}
/**
@@ -469,6 +447,11 @@
[tabBar setHideForSingleTab:YES];
}
+- (IBAction) openSelectedTabInNewWindow:(id)sender
+{
+ // not yet implemented
+}
+
#pragma mark -
#pragma mark Window delegate methods