aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-20 00:03:15 +0000
committerrowanbeentje <rowan@beent.je>2010-07-20 00:03:15 +0000
commit17c39170ace58e9169ad3b183793dba9af07dd21 (patch)
treed79fdaf611bf61033b2eb616857e9c359b29bdc4 /Source/SPDatabaseDocument.m
parenta5f4c3274ac06be78f78200ae486037e9b1a8910 (diff)
downloadsequelpro-17c39170ace58e9169ad3b183793dba9af07dd21.tar.gz
sequelpro-17c39170ace58e9169ad3b183793dba9af07dd21.tar.bz2
sequelpro-17c39170ace58e9169ad3b183793dba9af07dd21.zip
Tab tweaks:
- Sheets now appear positioned underneath the tab bar if visible - Tweak bottom corner drawing for a clearer outline, without highlight overlay - Frontmost tab no longer displays server name in the tab Also fix exception when right-clicking on an index to reset auto-increment.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 75e18ff3..a34d5b94 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -3817,8 +3817,8 @@
// Add the name to the window
[windowTitle appendString:[self name]];
- // Also add to the frontmost tab, and other tabs if the host is different, not connected, or no db is selected
- if (frontTableDocument == self || [[frontTableDocument name] isNotEqualTo:[self name]] || ![frontTableDocument getConnection] || ![self database]) {
+ // Also add to the non-front tabs if the host is different, not connected, or no db is selected
+ if ([[frontTableDocument name] isNotEqualTo:[self name]] || ![frontTableDocument getConnection] || ![self database]) {
[tabTitle appendString:[self name]];
}
@@ -4441,7 +4441,7 @@
if([tableTabView indexOfTabViewItem:[tableTabView selectedTabViewItem]] == 0
&& [[sheet title] isEqualToString:@"Reset Auto Increment"]) {
- id it = [tableSourceInstance valueForKeyPath:@"indexView"];
+ id it = [tableSourceInstance valueForKeyPath:@"indexesTableView"];
NSRect mwrect = [[NSApp mainWindow] frame];
NSRect ltrect = [[tablesListInstance valueForKeyPath:@"tablesListView"] frame];
NSRect rowrect = [it rectOfRow:[it selectedRow]];
@@ -4450,9 +4450,10 @@
rowrect.origin.x -= 8;
return [it convertRect:rowrect toView:nil];
- } else
- return rect;
+ }
+ rect.origin.y -= [[parentWindowController valueForKey:@"tabBar"] frame].size.height - 1;
+ return rect;
}
#pragma mark -