aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-12-10 18:58:39 +0800
committerXan Lopez <xan@igalia.com>2012-12-10 18:58:39 +0800
commitfe170e228b9d8198a78a19acf21dd9ac3cb8416a (patch)
tree5cbb311ea225ee183ef12c77a527d427eb6138be /src
parent7cd659322afabb3bffcfdc2e666f5e8ff3ffc6c6 (diff)
downloadgsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.tar
gsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.tar.gz
gsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.tar.bz2
gsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.tar.lz
gsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.tar.xz
gsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.tar.zst
gsoc2013-epiphany-fe170e228b9d8198a78a19acf21dd9ac3cb8416a.zip
ephy-session: remove useless condition in if
If there's already windows opened we'll never do anything in the MAYBE_OPEN_WINDOW command, so this check is redundant.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-session.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 10310f357..8bbfad49a 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -211,7 +211,6 @@ session_command_autoresume (EphySession *session,
char *saved_session_file_path;
gboolean crashed_session;
EphyPrefsRestoreSessionPolicy policy;
- EphyShell *shell;
LOG ("ephy_session_autoresume");
@@ -225,11 +224,8 @@ session_command_autoresume (EphySession *session,
policy = g_settings_get_enum (EPHY_SETTINGS_MAIN,
EPHY_PREFS_RESTORE_SESSION_POLICY);
- shell = ephy_shell_get_default ();
-
if (crashed_session == FALSE ||
- policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER ||
- ephy_shell_get_n_windows (shell) > 0)
+ policy == EPHY_PREFS_RESTORE_SESSION_POLICY_NEVER)
{
/* If we are auto-resuming, and we never want to
* restore the session, clobber the session state