Revision: 11409
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11409&view=rev
Author:   hofman
Date:     2007-10-29 14:06:54 -0700 (Mon, 29 Oct 2007)

Log Message:
-----------
Only update the font in the font panel from a tableview when it is first 
responder.

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

Modified: trunk/bibdesk/NSTableView_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSTableView_BDSKExtensions.m  2007-10-29 19:16:12 UTC (rev 
11408)
+++ trunk/bibdesk/NSTableView_BDSKExtensions.m  2007-10-29 21:06:54 UTC (rev 
11409)
@@ -224,11 +224,11 @@
 - (void)updateFontPanel:(NSNotification *)notification {
     NSString *fontNamePrefKey = [self fontNamePreferenceKey];
     NSString *fontSizePrefKey = [self fontSizePreferenceKey];
-    if (fontNamePrefKey != nil && fontSizePrefKey != nil) {
+    if ([[[self window] firstResponder] isEqual:self] && fontNamePrefKey != 
nil && fontSizePrefKey != nil) {
         NSString *fontName = [[OFPreferenceWrapper sharedPreferenceWrapper] 
objectForKey:fontNamePrefKey];
         float fontSize = [[OFPreferenceWrapper sharedPreferenceWrapper] 
floatForKey:fontSizePrefKey];
         [[NSFontManager sharedFontManager] setSelectedFont:[NSFont 
fontWithName:fontName size:fontSize] isMultiple:NO];
-       }
+    }
 }
 
 #pragma mark Convenience method


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to