summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-03 19:08:05 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-03 19:08:05 (EDT)
commit308d8e9bad8f9821952699accb029341c26ea338 (patch)
tree7f3224b29ea23e7a28f272a83d43e3de02160d1b /src
parent7d84e62be3bc8fd1a347269a70130f3b56d28fe6 (diff)
downloadmarquee-308d8e9bad8f9821952699accb029341c26ea338.zip
marquee-308d8e9bad8f9821952699accb029341c26ea338.tar.gz
marquee-308d8e9bad8f9821952699accb029341c26ea338.tar.bz2
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.
Diffstat (limited to 'src')
-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 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) {