don't create a NSColorPanel just to close it

This commit is contained in:
Mitchell Livingston 2012-01-02 21:47:14 +00:00
parent ff5510a3fc
commit 575a57525c
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@
- (void) addRemoveGroup: (id) sender - (void) addRemoveGroup: (id) sender
{ {
[[NSColorPanel sharedColorPanel] close]; if ([NSColorPanel sharedColorPanelExists])
[[NSColorPanel sharedColorPanel] close];
NSInteger row; NSInteger row;