aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-21 05:42:46 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-21 05:42:46 +0800
commitdd6f646f8f075ee328435b146efde61908da8349 (patch)
tree272ac82359740edef991b210f71cdbf3645a7a79 /shell/e-shell.c
parent5637adc2c07617b7f5ea206d24cfa073787a4e0d (diff)
downloadgsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar
gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar.gz
gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar.bz2
gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar.lz
gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar.xz
gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar.zst
gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.zip
[Fix a crash if you start evolution with a bad URI.]
2001-07-20 Jason Leach <jleach@ximian.com> [Fix a crash if you start evolution with a bad URI.] * e-shell.c (e_shell_create_view): If we can't display the URI, display the default uri. This is because it's necessary for e_shell_view_display_uri() to run all the way through so corba interfaces get setup. * e-shell-view.c (e_shell_view_display_uri): If we fail to create a new view for a URI (happens if you pass in an invalid URI), be sure to return FALSE. svn path=/trunk/; revision=11290
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 7733752c30..62c891e2f8 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -938,7 +938,8 @@ e_shell_create_view (EShell *shell,
GTK_SIGNAL_FUNC (view_destroy_cb), shell);
if (uri != NULL)
- e_shell_view_display_uri (E_SHELL_VIEW (view), uri);
+ if (!e_shell_view_display_uri (E_SHELL_VIEW (view), uri))
+ e_shell_view_display_uri (E_SHELL_VIEW (view), DEFAULT_URI);
shell->priv->views = g_list_prepend (shell->priv->views, view);