summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-label.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index 8ada3dd..b9fcbbd 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -70,12 +70,10 @@ reload_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label)
static void
close_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label)
{
- if (tab_label->popover) {
- /* This callback handles both the close button on the tab label
- * and the one on the popover. Only hide the popover if it's
- * shown. */
- gtk_widget_hide(tab_label->popover);
- }
+ /* This callback handles both the close button on the tab label and the
+ * one on the popover. Closing the tab automatically hides the popover,
+ * so don't bother conditionally hiding it if it's shown. */
+
mq_tab_page_close(tab_label->tab_page);
}