aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m6
-rw-r--r--Source/SPDatabaseDocument.m11
2 files changed, 9 insertions, 8 deletions
diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
index c7f7a67e..9ec84db8 100644
--- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
+++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
@@ -579,18 +579,18 @@
if ([cell state] == NSOnState) {
outlineBezier = [NSBezierPath bezierPath];
if (drawLeftEdge) {
- [outlineBezier appendBezierPathWithArcWithCenter:bottomLeftArcCenter radius:kPSMSequelProTabCornerRadius startAngle:180 endAngle:90 clockwise:YES];
+ [outlineBezier appendBezierPathWithArcWithCenter:bottomLeftArcCenter radius:kPSMSequelProTabCornerRadius startAngle:145 endAngle:90 clockwise:YES];
} else {
[outlineBezier moveToPoint:NSMakePoint(aRect.origin.x, aRect.origin.y + aRect.size.height - 0.5)];
}
if (drawRightEdge) {
- [outlineBezier appendBezierPathWithArcWithCenter:bottomRightArcCenter radius:kPSMSequelProTabCornerRadius startAngle:90 endAngle:0 clockwise:YES];
+ [outlineBezier appendBezierPathWithArcWithCenter:bottomRightArcCenter radius:kPSMSequelProTabCornerRadius startAngle:90 endAngle:35 clockwise:YES];
} else {
[outlineBezier lineToPoint:NSMakePoint(aRect.origin.x + aRect.size.width, aRect.origin.y + aRect.size.height - 0.5)];
}
shadow = [[NSShadow alloc] init];
[shadow setShadowBlurRadius:1];
- [shadow setShadowColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.3]];
+ [shadow setShadowColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.4]];
[shadow setShadowOffset:NSMakeSize(0, 1)];
[shadow set];
[outlineBezier stroke];
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 -