[epiphany] ephy-session: remove useless condition in if
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-session: remove useless condition in if
- Date: Mon, 10 Dec 2012 10:59:31 +0000 (UTC)
commit fe170e228b9d8198a78a19acf21dd9ac3cb8416a
Author: Xan Lopez <xan igalia com>
Date: Mon Dec 10 11:58:39 2012 +0100
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.
src/ephy-session.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 10310f3..8bbfad4 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]