From 8a00deb294d6dac6a0d1541700b4ca71cdd49bc9 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 14 Jan 2011 16:52:08 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20if=20user=20invokes=20Quicklo?= =?UTF-8?q?ok=20inside=20the=20OpenPanel=20of=20the=20Field=20Editor=20She?= =?UTF-8?q?et?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPFieldEditorController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index 2e761f80..5075ffaf 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -917,7 +917,10 @@ */ - (id)previewPanel:(id)panel previewItemAtIndex:(NSInteger)index { - return [NSURL fileURLWithPath:tmpFileName]; + if(tmpFileName) + return [NSURL fileURLWithPath:tmpFileName]; + + return nil; } /** -- cgit v1.2.3