aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-14 16:52:08 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-14 16:52:08 +0000
commit8a00deb294d6dac6a0d1541700b4ca71cdd49bc9 (patch)
tree15a3b888c58a5632f2fdd2ea36d50f8f4fee4895 /Source
parentc352ef02ae0e81496c9db2b8973a8cdd43669366 (diff)
downloadsequelpro-8a00deb294d6dac6a0d1541700b4ca71cdd49bc9.tar.gz
sequelpro-8a00deb294d6dac6a0d1541700b4ca71cdd49bc9.tar.bz2
sequelpro-8a00deb294d6dac6a0d1541700b4ca71cdd49bc9.zip
• fixed bug if user invokes Quicklook inside the OpenPanel of the Field Editor Sheet
Diffstat (limited to 'Source')
-rw-r--r--Source/SPFieldEditorController.m5
1 files changed, 4 insertions, 1 deletions
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;
}
/**