mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
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.
This commit is contained in:
parent
79fbd403a7
commit
45e4d26296
@ -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, " ");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user