Revision: 12258
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12258&view=rev
Author: amaxwell
Date: 2008-01-04 11:25:45 -0800 (Fri, 04 Jan 2008)
Log Message:
-----------
Add a pref to disable the QL icon in case of problems.
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m 2008-01-04
19:22:08 UTC (rev 12257)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m 2008-01-04
19:25:45 UTC (rev 12258)
@@ -44,10 +44,21 @@
@implementation FVQLIcon
+static BOOL FVQLIconDisabled = NO;
+
++ (void)initialize
+{
+ FVQLIconDisabled = [[NSUserDefaults standardUserDefaults]
boolForKey:@"FVQLIconDisabled"];
+}
+
- (id)initWithURL:(NSURL *)theURL;
{
- self = [super init];
- if (self) {
+ if (FVQLIconDisabled) {
+ NSZone *zone = [self zone];
+ [self release];
+ self = [[FVFinderIcon allocWithZone:zone]
initWithFinderIconOfURL:theURL];
+ }
+ else if ((self = [super init])) {
_fileURL = [theURL copy];
_imageRef = NULL;
_fullSize = NSZeroSize;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit