From d4a7d6499435eb95e2f80a4bd158dc7e1de408f0 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Mon, 3 Mar 2014 18:04:49 +0100 Subject: [PATCH] fix segfault with xmpp query in layout --- src/fe-common/core/windows-layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c index e5fe6bf6..65741a73 100644 --- a/src/fe-common/core/windows-layout.c +++ b/src/fe-common/core/windows-layout.c @@ -70,7 +70,9 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type, restore_win = window; protocol = chat_protocol_find(chat_type); - if (protocol->query_create != NULL) + if (protocol == NULL) + window_bind_add(window, tag, name); + else if (protocol->query_create != NULL) protocol->query_create(tag, name, TRUE); else { QUERY_REC *query;