diff --git a/xed/xed-window.c b/xed/xed-window.c index ef39c16..9fe4c5d 100644 --- a/xed/xed-window.c +++ b/xed/xed-window.c @@ -2752,19 +2752,11 @@ notebook_tab_removed (XedNotebook *notebook, gtk_widget_hide (window->priv->language_button); } - if (!window->priv->removing_tabs) + if (!window->priv->removing_tabs || window->priv->num_tabs == 0) { update_documents_list_menu (window); update_next_prev_doc_sensitivity_per_window (window); } - else - { - if (window->priv->num_tabs == 0) - { - update_documents_list_menu (window); - update_next_prev_doc_sensitivity_per_window (window); - } - } update_sensitivity_according_to_open_tabs (window);