[evolution] Don't use the previous stored default shell type in express mode. This avoids closing the mail, then



commit ea92ec7befd577466f40b4f68c378a6b30bed8da
Author: Michael Meeks <michael meeks novell com>
Date:   Tue Mar 16 20:36:42 2010 +0000

    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).

 shell/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/main.c b/shell/main.c
index ecb8e1b..e3d6941 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)))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]