Revision: 30006
          http://sourceforge.net/p/bibdesk/svn/30006
Author:   hofman
Date:     2026-02-16 16:54:17 +0000 (Mon, 16 Feb 2026)
Log Message:
-----------
reuse variable

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

Modified: trunk/bibdesk/BibPref_AutoFile.m
===================================================================
--- trunk/bibdesk/BibPref_AutoFile.m    2026-02-16 16:34:39 UTC (rev 30005)
+++ trunk/bibdesk/BibPref_AutoFile.m    2026-02-16 16:54:17 UTC (rev 30006)
@@ -290,7 +290,7 @@
         if (currentIsValid)
             [alert addButtonWithTitle:NSLocalizedString(@"Revert to Last", 
@"Button title")];
         [[alert addButtonWithTitle:NSLocalizedString(@"Revert to Default", 
@"Button title")] setTag:NSAlertThirdButtonReturn];
-        [alert beginSheetModalForWindow:[[self view] window] 
completionHandler:^(NSModalResponse returnCode){
+        [alert beginSheetModalForWindow:window 
completionHandler:^(NSModalResponse returnCode){
             if (returnCode != NSAlertFirstButtonReturn) {
                 if (returnCode == NSAlertThirdButtonReturn) {
                     NSString *defaultFormatString = 
[[[NSUserDefaultsController sharedUserDefaultsController] initialValues] 
objectForKey:BDSKLocalFileFormatKey];
@@ -299,7 +299,7 @@
                 }
                 
                 // this will reset the formatField string to the chosen default
-                [[[self view] window] endEditingFor:formatField];
+                [window endEditingFor:formatField];
                 [self updateFormatPresetUI];
                 
                 reply(YES);

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to