aboutsummaryrefslogtreecommitdiffstats
path: root/Source/GeneratePreviewForURL.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-08-03 20:10:00 +0200
committerMax <post@wickenrode.com>2014-08-03 20:10:00 +0200
commit2ed99ae914206ec7ba7f4a7778c69d6c041a411c (patch)
tree244a21f227ea19991b100629cb01b3372e60bccf /Source/GeneratePreviewForURL.m
parent2570a91dd1e1d7b88b908db33494baeaa5001e74 (diff)
downloadsequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.tar.gz
sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.tar.bz2
sequelpro-2ed99ae914206ec7ba7f4a7778c69d6c041a411c.zip
Replace a few other instances with objectOrNilAtIndex:
Diffstat (limited to 'Source/GeneratePreviewForURL.m')
-rw-r--r--Source/GeneratePreviewForURL.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/GeneratePreviewForURL.m b/Source/GeneratePreviewForURL.m
index 8aa2bf0a..2e0fc0cb 100644
--- a/Source/GeneratePreviewForURL.m
+++ b/Source/GeneratePreviewForURL.m
@@ -476,6 +476,7 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
if(!iconImages || [iconImages count] < 1)
iconImages = [NSArray arrayWithObject:[NSImage imageNamed:NSImageNameStopProgressTemplate]];
+#warning Shouldn't that be "> 1"?
if([iconImages count] > 0)
iconImage = [iconImages objectAtIndex:1];
else