From 45e4d26296b72ecf4f491bf1f310cc09e831300c Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 14 Feb 2021 21:00:05 +0100 Subject: Bugfix: Titlebar show name without room name Error log: GLib-CRITICAL - g_string_insert_len: assertion 'len == 0 || val != NULL' failed Check if a room name exists, before adding the name into the title bar. --- src/ui/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/window.c b/src/ui/window.c index cca6d902..8afb23f4 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -307,7 +307,7 @@ win_get_title(ProfWin* window) gboolean show_titlebar_name = prefs_get_boolean(PREF_TITLEBAR_MUC_TITLE_NAME); GString* title = g_string_new(""); - if (show_titlebar_name) { + if (show_titlebar_name && mucwin->room_name) { g_string_append(title, mucwin->room_name); g_string_append(title, " "); } -- cgit 1.4.1-2-gfad0