diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-19 00:18:42 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-08-19 00:18:42 +0800 |
commit | 4187293731274274e4283d9039f6e30c95578118 (patch) | |
tree | ab8ce6e6bc9316846097b827157e0f664cf57634 /shell/e-shell.c | |
parent | 28b28bf057056d2aa28458b322319bf679608ae5 (diff) | |
download | gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar.gz gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar.bz2 gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar.lz gsoc2013-evolution-4187293731274274e4283d9039f6e30c95578118.tar.xz 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.c | 7 |
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); |