From 575a57525c8cdc8447ffda8d4be30587f8d54d68 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 2 Jan 2012 21:47:14 +0000 Subject: [PATCH] don't create a NSColorPanel just to close it --- macosx/GroupsPrefsController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/GroupsPrefsController.m b/macosx/GroupsPrefsController.m index c46917b21..f3695fe97 100644 --- a/macosx/GroupsPrefsController.m +++ b/macosx/GroupsPrefsController.m @@ -156,7 +156,8 @@ - (void) addRemoveGroup: (id) sender { - [[NSColorPanel sharedColorPanel] close]; + if ([NSColorPanel sharedColorPanelExists]) + [[NSColorPanel sharedColorPanel] close]; NSInteger row;