aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-08-19 00:18:42 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-08-19 00:18:42 +0800
commit4187293731274274e4283d9039f6e30c95578118 (patch)
treeab8ce6e6bc9316846097b827157e0f664cf57634 /shell/e-shell.c
parent28b28bf057056d2aa28458b322319bf679608ae5 (diff)
downloadgsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar.gz
gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar.zst
gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.zip
Merge revisions 35993:36015 from trunk.
Adapt recent "crash recovery" changes to new architecture. svn path=/branches/kill-bonobo/; revision=36018
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index f617fe27ad..1d2d68b57e 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -104,8 +104,13 @@ EShellWindow *
e_shell_create_window (void)
{
GtkWidget *shell_window;
+ gboolean safe_mode;
- shell_window = e_shell_window_new ();
+ /* Put the first window into safe mode if we detect the previous
+ * session did not shut down cleanly, perhaps due to a crash. */
+ safe_mode = (active_windows == NULL) && e_file_lock_exists ();
+
+ shell_window = e_shell_window_new (safe_mode);
active_windows = g_list_prepend (active_windows, shell_window);