diff options
author | Xan Lopez <xan@igalia.com> | 2012-12-10 22:40:27 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-12-11 00:09:15 +0800 |
commit | 04848e06477d3b99a78fe150957e94ab8566927b (patch) | |
tree | a6447722a368d00c61df98a1f5a01f95fdc17abc /src/ephy-session.c | |
parent | e4df14ad36b61871fa55be8f5ede2998af3598d9 (diff) | |
download | gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.tar gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.tar.gz gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.tar.bz2 gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.tar.lz gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.tar.xz gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.tar.zst gsoc2013-epiphany-04848e06477d3b99a78fe150957e94ab8566927b.zip |
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'.
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r-- | src/ephy-session.c | 6 |
1 files 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 |