diff options
author | Dan Winship <danw@src.gnome.org> | 2004-05-01 03:05:34 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2004-05-01 03:05:34 +0800 |
commit | abdf6717ecc9aea15e75a3bb1655c6b1ea641b0e (patch) | |
tree | dc6ec1bdc32cea92e7f1d9c13b9333260c6f2473 /shell/e-shell.c | |
parent | 47d08d021f98307e84e7525340ac008ebf4d12f4 (diff) | |
download | gsoc2013-evolution-abdf6717ecc9aea15e75a3bb1655c6b1ea641b0e.tar.gz gsoc2013-evolution-abdf6717ecc9aea15e75a3bb1655c6b1ea641b0e.tar.zst gsoc2013-evolution-abdf6717ecc9aea15e75a3bb1655c6b1ea641b0e.zip |
Don't save window state here.
* e-shell-window-commands.c (command_quit): Don't save window
state here.
* e-shell.c (e_shell_quit): Do it here, so it gets called if you
quit by closing the last window via its close button too. #57529
svn path=/trunk/; revision=25723
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c index 7e92785553..5c69e49e90 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -1175,8 +1175,11 @@ e_shell_quit(EShell *shell) if (can_quit) { GList *p = shell->priv->windows; - for (; p != NULL; p = p->next) + for (; p != NULL; p = p->next) { gtk_widget_set_sensitive (GTK_WIDGET (p->data), FALSE); + if (p == shell->priv->windows) + e_shell_window_save_defaults (p->data); + } can_quit = !es_run_quit(shell); } |