aboutsummaryrefslogtreecommitdiffstats
path: root/src/session.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-10 03:52:21 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-10 03:52:21 +0800
commit4e3ff98a7670d0530adb3bca0d00a5d141edb856 (patch)
tree5f48b1e92fc80c312cd1ba34ac6921d48dca06c1 /src/session.c
parent1d54b362a87e2baa341281429971b632a5750e84 (diff)
downloadgsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.gz
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.bz2
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.lz
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.xz
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.tar.zst
gsoc2013-epiphany-4e3ff98a7670d0530adb3bca0d00a5d141edb856.zip
Do not connect and reemit same signal for nothing. Remove unused/expensive
2003-11-09 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: * src/ephy-tab.c: (ephy_tab_init): Do not connect and reemit same signal for nothing. Remove unused/expensive progress signal. * src/session.c: (session_save): Unlink session file when all windows are removed.
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 958e804b8..9df93ca14 100644
--- a/src/session.c
+++ b/src/session.c
@@ -444,6 +444,12 @@ session_save (Session *session,
xmlDocPtr doc;
char *save_to;
+ if (session->priv->windows == NULL)
+ {
+ session_delete (session, filename);
+ return;
+ }
+
save_to = get_session_filename (filename);
doc = xmlNewDoc ("1.0");