From 308d8e9bad8f9821952699accb029341c26ea338 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Oct 2018 19:08:05 -0400 Subject: MqTabLabel: Don't rename tab to normal title If the user closes the name popover without changing the normal title, don't rename the tab. --- (limited to 'src') diff --git a/src/tab-label.c b/src/tab-label.c index e3b7ee3..4d2a3b8 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -211,7 +211,7 @@ set_title(MqTabLabel *tab_label, const gchar *title) static void set_custom_title(MqTabLabel *tab_label, const gchar *title) { - if (title && title[0]) { + if (title && title[0] && g_strcmp0(title, tab_label->title) != 0) { g_free(tab_label->custom_title); tab_label->custom_title = g_strdup(title); if (tab_label->scrolling) { -- cgit v0.9.1