aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-04-10 03:01:21 +0800
committerChris Toshok <toshok@src.gnome.org>2004-04-10 03:01:21 +0800
commit173ec4ea294cf4625218fb3f8e2471a543004aba (patch)
treea2d9addbfa3011c61ea991ea6b3782987e14ff4f /shell/e-shell.c
parent5918f7d6aa32cc1bc12bdf7f936c9502631c7f7f (diff)
downloadgsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.tar
gsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.tar.gz
gsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.tar.bz2
gsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.tar.lz
gsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.tar.xz
gsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.tar.zst
gsoc2013-evolution-173ec4ea294cf4625218fb3f8e2471a543004aba.zip
make sure the component is activated before calling upgradeFromVersion.
2004-04-09 Chris Toshok <toshok@ximian.com> * e-shell.c (e_shell_attempt_upgrade): make sure the component is activated before calling upgradeFromVersion. svn path=/trunk/; revision=25400
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index c91152b62b..e4d60f32ae 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -687,7 +687,10 @@ e_shell_attempt_upgrade (EShell *shell, int major, int minor, int revision)
CORBA_exception_init (&ev);
- component_upgraded = GNOME_Evolution_Component_upgradeFromVersion (info->iface, major, minor, revision, &ev);
+ e_component_registry_activate (shell->priv->component_registry, info->id, &ev);
+
+ if (!BONOBO_EX (&ev))
+ component_upgraded = GNOME_Evolution_Component_upgradeFromVersion (info->iface, major, minor, revision, &ev);
if (BONOBO_EX (&ev)) {
char *exception_text;