aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-08-01 00:09:00 +0800
committerXan Lopez <xan@igalia.com>2012-08-01 00:09:00 +0800
commit38e02f6d3aeac853cf14e6edcc84d9e588207d94 (patch)
tree264681048661538f6e0d11cb0b574939930a57d3 /src
parentee276bcbe7ce834b0e20bf9141a1155c3f472d6b (diff)
downloadgsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.tar
gsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.tar.gz
gsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.tar.bz2
gsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.tar.lz
gsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.tar.xz
gsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.tar.zst
gsoc2013-epiphany-38e02f6d3aeac853cf14e6edcc84d9e588207d94.zip
ephy-session: spawn the default window if the session state file is broken
https://bugzilla.gnome.org/show_bug.cgi?id=680590
Diffstat (limited to 'src')
-rw-r--r--src/ephy-session.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index d48c17782..93ce7a252 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -1120,6 +1120,12 @@ ephy_session_load_from_string (EphySession *session,
if (doc == NULL)
{
+ /* If the session fails to load for whatever reason,
+ * delete the file and open an empty window. */
+ session_delete (session, SESSION_STATE);
+ ephy_session_queue_command (session,
+ EPHY_SESSION_CMD_MAYBE_OPEN_WINDOW,
+ NULL, NULL, user_time, FALSE);
return FALSE;
}