Revision: 22444
          http://sourceforge.net/p/bibdesk/svn/22444
Author:   hofman
Date:     2018-07-21 09:14:36 +0000 (Sat, 21 Jul 2018)
Log Message:
-----------
combine calls

Modified Paths:
--------------
    trunk/bibdesk/BibPref_AutoFile.m
    trunk/bibdesk/BibPref_CiteKey.m

Modified: trunk/bibdesk/BibPref_AutoFile.m
===================================================================
--- trunk/bibdesk/BibPref_AutoFile.m    2018-07-21 06:30:31 UTC (rev 22443)
+++ trunk/bibdesk/BibPref_AutoFile.m    2018-07-21 09:14:36 UTC (rev 22444)
@@ -312,15 +312,13 @@
                } else {
                        return;
                }
-               // this one is always valid
-               [sud setObject:formatString forKey:BDSKLocalFileFormatKey];
        }
        else { //changed the text field or added from the repository
         if ([self formatError])
             return;
         formatString = [formatSheetField stringValue];
-        [sud setObject:formatString forKey:BDSKLocalFileFormatKey];
        }
+    [sud setObject:formatString forKey:BDSKLocalFileFormatKey];
        [[BDSKTypeManager sharedManager] setRequiredFieldsForLocalFile: 
[BDSKFormatParser requiredFieldsForFormat:formatString]];
     [self updateFormatPresetUI];
 }

Modified: trunk/bibdesk/BibPref_CiteKey.m
===================================================================
--- trunk/bibdesk/BibPref_CiteKey.m     2018-07-21 06:30:31 UTC (rev 22443)
+++ trunk/bibdesk/BibPref_CiteKey.m     2018-07-21 09:14:36 UTC (rev 22444)
@@ -223,15 +223,13 @@
                } else {
                        return;
                }
-               // this one is always valid
-               [sud setObject:formatString forKey:BDSKCiteKeyFormatKey];
        }
        else { //changed the text field or added from the repository
         if ([self formatError])
             return;
         formatString = [formatSheetField stringValue];
-        [sud setObject:formatString forKey:BDSKCiteKeyFormatKey];
     }
+    [sud setObject:formatString forKey:BDSKCiteKeyFormatKey];
     [[BDSKTypeManager sharedManager] setRequiredFieldsForCiteKey: 
[BDSKFormatParser requiredFieldsForFormat:formatString]];
        [self updateFormatPresetUI];
 }

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to