From 6867d2ec117eaa9537a5e6ccb39fc233d790ba61 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 12 Apr 2010 13:54:56 +0000 Subject: =?UTF-8?q?=E2=80=A2=C2=A0renamed=20'Open'=20button=20in=20'Import?= =?UTF-8?q?=20from=20Clipboard'=20to=20'Next'=20=E2=80=A2=20fixed=20'Impor?= =?UTF-8?q?t=20from=20Clipboard'=20menu=20item=20validation=20to=20be=20di?= =?UTF-8?q?sabled=20if=20no=20database=20is=20selected=20(thanks=20to=20av?= =?UTF-8?q?enjamin=20for=20pointing=20it=20out)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/TableDocument.m') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index de23ba80..71c581bf 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3096,7 +3096,7 @@ if ([menuItem action] == @selector(importFromClipboard:)) { - return ([[NSPasteboard generalPasteboard] availableTypeFromArray:[NSArray arrayWithObjects:NSStringPboardType, nil]]) ? YES : NO; + return ([self database] && [[NSPasteboard generalPasteboard] availableTypeFromArray:[NSArray arrayWithObjects:NSStringPboardType, nil]]) ? YES : NO; } -- cgit v1.2.3