diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-11-10 04:07:27 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-11-10 04:07:27 +0800 |
commit | fe54716d6ad4bee8964d5437b2db51f7fac0b057 (patch) | |
tree | eb7f09d07bf7d043299ec593ebb33893e60a608a | |
parent | 1ffb8550650915b67067cea12f1566a41273f359 (diff) | |
download | gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.tar gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.tar.gz gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.tar.bz2 gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.tar.lz gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.tar.xz gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.tar.zst gsoc2013-epiphany-fe54716d6ad4bee8964d5437b2db51f7fac0b057.zip |
Don't try to resume the session when there already is a window open.
2003-11-09 Christian Persch <chpe@cvs.gnome.org>
* src/session.c: (session_save):
Don't try to resume the session when there already is
a window open.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/session.c | 6 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2003-11-09 Christian Persch <chpe@cvs.gnome.org> + + * src/session.c: (session_save): + + Don't try to resume the session when there already is + a window open. + 2003-11-08 Marco Pesenti Gritti <marco@gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: diff --git a/src/session.c b/src/session.c index 7a36bde8b..acace9d63 100644 --- a/src/session.c +++ b/src/session.c @@ -512,6 +512,12 @@ session_save (Session *session, save_to = get_session_filename (filename); + if (session->priv->windows == NULL) + { + session_delete (session, filename); + return; + } + doc = xmlNewDoc ("1.0"); /* create and set the root node for the session */ |