From dde92eecbf49b76d9818335cc7eb2a69eeb371f7 Mon Sep 17 00:00:00 2001 From: Stephen Collins Date: Thu, 20 Jun 2019 10:29:36 -0600 Subject: [PATCH] Simplify an if statement. The logic is identical, but easier to read (#314) --- xed/xed-window.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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);