diff options
author | stuconnolly <stuart02@gmail.com> | 2013-01-25 20:14:11 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-01-25 20:14:11 +0000 |
commit | b442a9920d8e873c4df7b84799aa49e551922e2d (patch) | |
tree | 1b52e6e477419456b11327a6b920b59ca5d80fcd /Source/SPBundleCommandTextView.m | |
parent | dfd3414cbcfc025caa23285c7d1a8f108b09b5f1 (diff) | |
download | sequelpro-b442a9920d8e873c4df7b84799aa49e551922e2d.tar.gz sequelpro-b442a9920d8e873c4df7b84799aa49e551922e2d.tar.bz2 sequelpro-b442a9920d8e873c4df7b84799aa49e551922e2d.zip |
Fix more warnings.
Diffstat (limited to 'Source/SPBundleCommandTextView.m')
-rw-r--r-- | Source/SPBundleCommandTextView.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPBundleCommandTextView.m b/Source/SPBundleCommandTextView.m index d889c8d8..dc674baa 100644 --- a/Source/SPBundleCommandTextView.m +++ b/Source/SPBundleCommandTextView.m @@ -621,14 +621,14 @@ [self setSelectedRange:NSMakeRange(characterIndex,0)]; // Check if user pressed ⌘ while dragging for inserting only the file path - if([sender draggingSourceOperationMask] == 4) - { + if ([sender draggingSourceOperationMask] == 4) { [self insertText:filepath]; return YES; } // Check size and NSFileType - NSDictionary *attr = [[NSFileManager defaultManager] fileAttributesAtPath:filepath traverseLink:YES]; + NSDictionary *attr = [[NSFileManager defaultManager] attributesOfItemAtPath:filepath error:nil]; + if(attr) { NSNumber *filesize = [attr objectForKey:NSFileSize]; |