summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-06-11 12:46:49 +0200
committerAlexander Færøy <ahf@0x90.dk>2014-06-11 12:46:49 +0200
commit3876cd9417a4820f2010c39ebf6e7bb95cd9c937 (patch)
treeac9ac865cbe00296e02cc692284e913c81fb431b /src
parent6a840c17bf4a65103322545452842573faddaa49 (diff)
parentd4a7d6499435eb95e2f80a4bd158dc7e1de408f0 (diff)
downloadirssi-3876cd9417a4820f2010c39ebf6e7bb95cd9c937.zip
Merge pull request #13 from ailin-nemui/segfault-no-protocol
fix segfault with xmpp query in layout
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/windows-layout.c4
1 files changed, 3 insertions, 1 deletions
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;