Revision: 30000
http://sourceforge.net/p/bibdesk/svn/30000
Author: hofman
Date: 2026-02-16 15:32:39 +0000 (Mon, 16 Feb 2026)
Log Message:
-----------
validate papers folder textfield before unselecting autofile prefs
Modified Paths:
--------------
trunk/bibdesk/BibPref_AutoFile.m
Modified: trunk/bibdesk/BibPref_AutoFile.m
===================================================================
--- trunk/bibdesk/BibPref_AutoFile.m 2026-02-16 15:23:22 UTC (rev 29999)
+++ trunk/bibdesk/BibPref_AutoFile.m 2026-02-16 15:32:39 UTC (rev 30000)
@@ -267,11 +267,13 @@
#pragma mark Unselecting pane
- (void)shouldUnselectWithReply:(void (^)(BOOL))reply {
- if ([formatField currentEditor] == nil || [[[self view] window]
makeFirstResponder:nil]) {
+ NSWindow *window = [[self view] window];
+ BOOL editingFormat = [formatField currentEditor] != nil;
+ if ([[window firstResponder] isKindOfClass:[NSText class]] && [(NSView
*)[window firstResponder] isDescendantOf:[self view]] && NO == [window
makeFirstResponder:nil]) {
reply(YES);
- } else {
+ } else if (editingFormat) {
NSString *formatString = [sud stringForKey:BDSKLocalFileFormatKey];
BOOL currentIsValid = [BDSKFormatParser validateFormat:&formatString
forField:BDSKLocalFileString error:NULL];
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