Changeset 13125


Ignore:
Timestamp:
Jan 2, 2012, 9:47:14 PM (9 years ago)
Author:
livings124
Message:

don't create a NSColorPanel just to close it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/GroupsPrefsController.m

    r13124 r13125  
    157157- (void) addRemoveGroup: (id) sender
    158158{
    159     [[NSColorPanel sharedColorPanel] close];
     159    if ([NSColorPanel sharedColorPanelExists])
     160        [[NSColorPanel sharedColorPanel] close];
    160161
    161162    NSInteger row;
Note: See TracChangeset for help on using the changeset viewer.