summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-03 19:09:33 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-03 19:09:33 (EDT)
commit622852b580a04c419cfd3df9461b344f027b8eb2 (patch)
tree5854c37517c1801e6a9f83b45a05a61d1b8b05b9
parent4272057e7341b630dbe0f33ba5b62d38fb31d776 (diff)
downloadmarquee-622852b580a04c419cfd3df9461b344f027b8eb2.zip
marquee-622852b580a04c419cfd3df9461b344f027b8eb2.tar.gz
marquee-622852b580a04c419cfd3df9461b344f027b8eb2.tar.bz2
MqTabLabel: Only restore normal title if custom title set
Otherwise, mq_tab_page_set_title() tries to unblock a WebKitWebView notify::title signal handler that isn't blocked. Fixes: (marquee:...): GLib-GObject-WARNING **: /build/glib2.0-B1uXKV/glib2.0-2.50.3/./gobject/gsignal.c:2602: handler '128' of instance '0x...' is not blocked
-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) {