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/ChangeLog | 7 +++++++ calendar/gui/comp-editor-factory.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 8509c23d5c..a5c17eecac 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,9 +1,16 @@ +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) + 2002-07-25 JP Rosevear * gui/e-day-view.c (e_day_view_init): set large_font to NULL (e_day_view_style_set): calculate large font, fall back to the style->font if necessary + Fixes #11773 + 2002-07-24 JP Rosevear * gui/e-itip-control.c (write_html): display the location in the 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