diff options
author | JP Rosevear <jpr@ximian.com> | 2002-07-27 00:18:03 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-07-27 00:18:03 +0800 |
commit | 6651d98ae36bc2565d5d6bb6914dc397278e00fd (patch) | |
tree | 0b95fe7af97965a10e3751682aa74c8dc85ee1dc /calendar/gui | |
parent | 3c92b86460dce7b6e8d19de939ce4a65a01b55b7 (diff) | |
download | gsoc2013-evolution-6651d98ae36bc2565d5d6bb6914dc397278e00fd.tar.gz gsoc2013-evolution-6651d98ae36bc2565d5d6bb6914dc397278e00fd.tar.zst gsoc2013-evolution-6651d98ae36bc2565d5d6bb6914dc397278e00fd.zip |
focus the editor if it does exist, create a new one if it doesn't (not
2002-07-26 JP Rosevear <jpr@ximian.com>
* 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
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/comp-editor-factory.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |