aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-notebook.c')
-rw-r--r--src/ephy-notebook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 1b8eeb0b3..6a43412f0 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -764,7 +764,8 @@ ephy_notebook_remove (GtkContainer *container,
int position, curr;
EphyWebView *view;
- g_assert (EPHY_IS_EMBED (tab_widget));
+ if (!EPHY_IS_EMBED (tab_widget))
+ return;
/* Remove the page from the focused pages list */
priv->focused_pages = g_list_remove (priv->focused_pages, tab_widget);