summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index 4d2a3b8..b677997 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -220,7 +220,7 @@ set_custom_title(MqTabLabel *tab_label, const gchar *title)
update_label(tab_label);
gtk_widget_set_tooltip_text(GTK_WIDGET(tab_label), title);
mq_tab_page_set_title(tab_label->tab_page, title);
- } else {
+ } else if (tab_label->custom_title && tab_label->custom_title[0]) {
g_free(tab_label->custom_title);
tab_label->custom_title = NULL;
if (tab_label->scrolling) {