aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m6
1 files changed, 5 insertions, 1 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;
}