From 38e02f6d3aeac853cf14e6edcc84d9e588207d94 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 31 Jul 2012 18:09:00 +0200 Subject: ephy-session: spawn the default window if the session state file is broken https://bugzilla.gnome.org/show_bug.cgi?id=680590 --- src/ephy-session.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ephy-session.c') 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; } -- cgit v1.2.3