diff options
author | Jason Leach <jleach@ximian.com> | 2001-07-21 05:42:46 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-07-21 05:42:46 +0800 |
commit | dd6f646f8f075ee328435b146efde61908da8349 (patch) | |
tree | 272ac82359740edef991b210f71cdbf3645a7a79 /shell/e-shell-view.c | |
parent | 5637adc2c07617b7f5ea206d24cfa073787a4e0d (diff) | |
download | gsoc2013-evolution-dd6f646f8f075ee328435b146efde61908da8349.tar.gz 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-view.c')
-rw-r--r-- | shell/e-shell-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 7add4142cd..2b45f5dcc0 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1875,7 +1875,7 @@ e_shell_view_display_uri (EShellView *shell_view, if (control != NULL) { g_assert (GTK_IS_WIDGET (control)); show_existing_view (shell_view, uri, control); - } else if (create_new_view_for_uri (shell_view, uri)) { + } else if (!create_new_view_for_uri (shell_view, uri)) { cleanup_delayed_selection (shell_view); priv->delayed_selection = g_strdup (uri); gtk_signal_connect_after (GTK_OBJECT (e_shell_get_storage_set (priv->shell)), "new_folder", |