aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorIain Holmes <iain@ximian.com>2001-10-31 06:15:05 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-31 06:15:05 +0800
commit43f8a506b637f9d3b580c9bc1ece459d9429bab5 (patch)
tree0ee8ba4005619f930f1a3d0911db485fa32c960f /shell/e-shell-view.c
parent54ea765e753c91710513e15e3be54ce86077c461 (diff)
downloadgsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.tar
gsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.tar.gz
gsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.tar.bz2
gsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.tar.lz
gsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.tar.xz
gsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.tar.zst
gsoc2013-evolution-43f8a506b637f9d3b580c9bc1ece459d9429bab5.zip
If the display uri is NULL, set the view to the default.
2001-10-30 Iain Holmes <iain@ximian.com> * e-shell-view.c (e_shell_view_load_settings): If the display uri is NULL, set the view to the default. svn path=/trunk/; revision=14489
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index fc090204e0..cd9355b90e 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -2464,8 +2464,12 @@ e_shell_view_load_settings (EShellView *shell_view,
key = g_strconcat (prefix, "DisplayedURI", NULL);
stringval = bonobo_config_get_string (db, key, NULL);
- if (! e_shell_view_display_uri (shell_view, stringval))
+ if (stringval) {
+ if (! e_shell_view_display_uri (shell_view, stringval))
+ e_shell_view_display_uri (shell_view, E_SHELL_VIEW_DEFAULT_URI);
+ } else
e_shell_view_display_uri (shell_view, E_SHELL_VIEW_DEFAULT_URI);
+
g_free (stringval);
g_free (key);