diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:56:50 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:56:50 +0000 |
commit | 11124c3e957a4501e71446e24d0de590f1bc37c1 (patch) | |
tree | fa66bb9b5522e8c5aabf4685c82f8171ff9ab383 /Source/TableDocument.m | |
parent | 521d1b18c673f23b0123d2cf908c5c1ea62fb0af (diff) | |
download | sequelpro-11124c3e957a4501e71446e24d0de590f1bc37c1.tar.gz sequelpro-11124c3e957a4501e71446e24d0de590f1bc37c1.tar.bz2 sequelpro-11124c3e957a4501e71446e24d0de590f1bc37c1.zip |
Disable copy/rename database in menu, if no database is selected
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index ad72d2df..49f30030 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3177,7 +3177,9 @@ if ([menuItem action] == @selector(import:) || [menuItem action] == @selector(export:) || [menuItem action] == @selector(exportMultipleTables:) || - [menuItem action] == @selector(removeDatabase:)) + [menuItem action] == @selector(removeDatabase:) || + [menuItem action] == @selector(copyDatabase:) || + [menuItem action] == @selector(renameDatabase:)) { return ([self database] != nil); } |