aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/TableDocument.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 15e875e8..d1412032 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1192,6 +1192,10 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa
return [self supportsEncoding];
}
+ if ([menuItem action] == @selector(removeDatabase:)) {
+ return ([self database] != nil);
+ }
+
// table menu items
if ([menuItem action] == @selector(showCreateTableSyntax:) ||
[menuItem action] == @selector(copyCreateTableSyntax:) ||