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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4f663ec01..43223f9cc 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1666,12 +1666,7 @@ tab_removed_cb (EphyNotebook *notebook,
window->priv->num_tabs--;
- if (window->priv->num_tabs == 0)
- {
- /* removed the last tab, close the window */
- gtk_widget_destroy (GTK_WIDGET (window));
- }
- else
+ if (window->priv->num_tabs > 0)
{
update_tabs_menu_sensitivity (window);
}