From 04848e06477d3b99a78fe150957e94ab8566927b Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 10 Dec 2012 15:40:27 +0100 Subject: ephy-session: use a better variable name for session recovery We always recover the session now, so 'has_session_state' makes more sense than 'crashed_session'. --- src/ephy-session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ephy-session.c b/src/ephy-session.c index bb58d3850..024895ae4 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -207,7 +207,7 @@ session_command_autoresume (EphySession *session, { GFile *saved_session_file; char *saved_session_file_path; - gboolean crashed_session; + gboolean has_session_state; EphyPrefsRestoreSessionPolicy policy; EphyShell *shell; @@ -216,7 +216,7 @@ session_command_autoresume (EphySession *session, saved_session_file = get_session_file (SESSION_STATE); saved_session_file_path = g_file_get_path (saved_session_file); g_object_unref (saved_session_file); - crashed_session = g_file_test (saved_session_file_path, G_FILE_TEST_EXISTS); + has_session_state = g_file_test (saved_session_file_path, G_FILE_TEST_EXISTS); g_free (saved_session_file_path); @@ -225,7 +225,7 @@ session_command_autoresume (EphySession *session, shell = ephy_shell_get_default (); - if (crashed_session == FALSE || + if (has_session_state == FALSE || policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER) { /* If we are auto-resuming, and we never want to -- cgit v1.2.3