Revision: 6781
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6781&view=rev
Author:   hofman
Date:     2010-09-07 13:00:53 +0000 (Tue, 07 Sep 2010)

Log Message:
-----------
assume file bookmark when creating a bookmark without a type but with a file 
from scripting

Modified Paths:
--------------
    trunk/SKBookmark.m

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2010-09-05 16:44:56 UTC (rev 6780)
+++ trunk/SKBookmark.m  2010-09-07 13:00:53 UTC (rev 6781)
@@ -255,7 +255,7 @@
     if ([key isEqualToString:@"bookmarks"]) {
         SKBookmark *bookmark = nil;
         FourCharCode type = [[properties 
objectForKey:@"scriptingBookmarkType"] unsignedIntValue];
-        if (type == 0 && [contentsValue isKindOfClass:[NSURL class]])
+        if (type == 0 && ([contentsValue isKindOfClass:[NSURL class]] || 
[properties objectForKey:@"scriptingFile"]))
             type = SKScriptingBookmarkTypeBookmark;
         switch (type) {
             case SKScriptingBookmarkTypeBookmark:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to