Ticket #22644: patch-modules-gui-macosx-simple_prefs.diff

File patch-modules-gui-macosx-simple_prefs.diff, 620 bytes (added by kalen@…, 15 years ago)
  • modules/gui/macosx/simple_prefs.m

    old new  
    422422- (void)setupButton: (NSButton *)object forBoolValue: (const char *)name
    423423{
    424424    [object setState: config_GetInt( p_intf, name )];
    425     [object setToolTip: [NSString stringWithUTF8String: config_GetLabel( p_intf, name )]];
     425    if( config_GetLabel( p_intf, name ) )
     426        [object setToolTip: [NSString stringWithUTF8String: config_GetLabel( p_intf, name )]];
    426427}
    427428
    428429- (void)setupField:(NSTextField *)o_object forOption:(const char *)psz_option