aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 311d6202c..d014e4378 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1313,9 +1313,8 @@ ephy_window_notebook_switch_page_cb (GtkNotebook *notebook,
{
EphyTab *tab, *old_tab;
- if (window->priv->closing) return;
-
g_return_if_fail (IS_EPHY_WINDOW (window));
+ if (window->priv->closing) return;
/* get the new tab */
tab = real_get_active_tab (window, page_num);