Revision: 18493
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18493&view=rev
Author: hofman
Date: 2012-02-06 11:05:40 +0000 (Mon, 06 Feb 2012)
Log Message:
-----------
always reread main window setup from extended attributes, in particular on
revert
Modified Paths:
--------------
trunk/bibdesk/BibDocument.m
Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2012-02-06 10:46:12 UTC (rev 18492)
+++ trunk/bibdesk/BibDocument.m 2012-02-06 11:05:40 UTC (rev 18493)
@@ -1733,6 +1733,9 @@
// when using the Open panel this should be initialized to the selected
encoding, otherwise the default encoding from the prefs, or for revert whatever
it was
NSStringEncoding encoding = [self documentStringEncoding];
+ // make sure we reread the setup from extended attributes from the file,
in particular on revert
+ BDSKDESTROY(mainWindowSetupDictionary);
+
// This is only a sanity check; an encoding of 0 is not valid, so is a
signal we should ignore xattrs; could only check for public.text UTIs, but it
will be zero if it was never written (and we don't warn in that case). The
user can do many things to make the attribute incorrect, so this isn't very
robust.
NSStringEncoding encodingFromFile = [[self
mainWindowSetupDictionaryFromExtendedAttributes]
unsignedIntegerForKey:BDSKDocumentStringEncodingKey
defaultValue:BDSKNoStringEncoding];
if (encodingFromFile != BDSKNoStringEncoding && encodingFromFile !=
encoding) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit