diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-01 14:30:47 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-01 14:30:47 +0000 |
commit | 590585d37bdd8453dd1020cefe27dd55a77de5aa (patch) | |
tree | 2b04273612ce09289ee0fc57e0c853fd4faf6fad /Source/SPAppController.m | |
parent | b39f7d5d692432c503358ce6b5a6f104164cab6c (diff) | |
download | sequelpro-590585d37bdd8453dd1020cefe27dd55a77de5aa.tar.gz sequelpro-590585d37bdd8453dd1020cefe27dd55a77de5aa.tar.bz2 sequelpro-590585d37bdd8453dd1020cefe27dd55a77de5aa.zip |
• disable "New Connection Tab" ⌘T menu item if a sheet is ordered out
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r-- | Source/SPAppController.m | 6 |
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; } |