aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-04-29 18:56:50 +0000
committerdrx777 <david.rekowski@gmx.de>2010-04-29 18:56:50 +0000
commit11124c3e957a4501e71446e24d0de590f1bc37c1 (patch)
treefa66bb9b5522e8c5aabf4685c82f8171ff9ab383 /Source
parent521d1b18c673f23b0123d2cf908c5c1ea62fb0af (diff)
downloadsequelpro-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')
-rw-r--r--Source/TableDocument.m4
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);
}