aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-03-17 04:36:42 +0800
committerMichael Meeks <michael.meeks@novell.com>2010-03-17 04:37:56 +0800
commitea92ec7befd577466f40b4f68c378a6b30bed8da (patch)
treed2781742429ec3478c282c77202463eebab6df48 /shell
parenteb50f4353eda75652147af6f0ac61e668fd59b79 (diff)
downloadgsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.tar
gsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.tar.gz
gsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.tar.bz2
gsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.tar.lz
gsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.tar.xz
gsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.tar.zst
gsoc2013-evolution-ea92ec7befd577466f40b4f68c378a6b30bed8da.zip
Don't use the previous stored default shell type in express mode.
This avoids closing the mail, then addressbook, and getting only an addressbook when re-run (with no switchers in express mode).
Diffstat (limited to 'shell')
-rw-r--r--shell/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/main.c b/shell/main.c
index ecb8e1b73d..e3d69412a6 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -247,8 +247,11 @@ idle_cb (gchar **uris)
else if (uris != NULL && *uris != NULL) {
if (e_shell_handle_uris (shell, uris, import_uris) == 0)
gtk_main_quit ();
- } else
+ } else {
+ if (express_mode && requested_view == NULL)
+ requested_view = "mail";
e_shell_create_shell_window (shell, requested_view);
+ }
/* If another Evolution process is running, we're done. */
if (unique_app_is_running (UNIQUE_APP (shell)))