From 6651d98ae36bc2565d5d6bb6914dc397278e00fd Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 26 Jul 2002 16:18:03 +0000 Subject: focus the editor if it does exist, create a new one if it doesn't (not 2002-07-26 JP Rosevear * gui/comp-editor-factory.c (impl_editExisting): focus the editor if it does exist, create a new one if it doesn't (not vice-versa) svn path=/trunk/; revision=17603 --- calendar/gui/comp-editor-factory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c index b5e19575f1..cd7578faf3 100644 --- a/calendar/gui/comp-editor-factory.c +++ b/calendar/gui/comp-editor-factory.c @@ -592,9 +592,8 @@ impl_editExisting (PortableServer_Servant servant, } /* Look up the component */ - editor = e_comp_editor_registry_find (comp_editor_registry, uid); - if (editor != NULL) { + if (editor == NULL) { edit_existing (oc, uid); } else { comp_editor_focus (editor); -- cgit v1.2.3