aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPAppController.m6
-rw-r--r--Source/SPDatabaseDocument.m2
2 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 0589b1d2..e94f52ac 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -109,7 +109,11 @@
return NO;
}
-
+ if([menuItem action] == @selector(newTab:))
+ {
+ return ([[self frontDocumentWindow] attachedSheet] == nil);
+ }
+
return YES;
}
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 914ab259..beb8ab5a 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -3555,7 +3555,7 @@
}
if (!_isConnected || _isWorkingLevel) {
- return ([menuItem action] == @selector(newWindow:) || [menuItem action] == @selector(terminate:) || [menuItem action] == @selector(closeTab:) || [menuItem action] == @selector(newTab:));
+ return ([menuItem action] == @selector(newWindow:) || [menuItem action] == @selector(terminate:) || [menuItem action] == @selector(closeTab:));
}
if ([menuItem action] == @selector(openCurrentConnectionInNewWindow:))