diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-11-10 03:52:21 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-10 03:52:21 +0800 |
commit | 4e3ff98a7670d0530adb3bca0d00a5d141edb856 (patch) | |
tree | 5f48b1e92fc80c312cd1ba34ac6921d48dca06c1 /src/session.c | |
parent | 1d54b362a87e2baa341281429971b632a5750e84 (diff) | |
download | gsoc2013-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.c | 6 |
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"); |