1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 22:43:26 +01:00

fix segfault

This commit is contained in:
Jfreegman 2014-10-08 18:06:15 -04:00
parent 8a882916fb
commit 0908920b51
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -370,7 +370,7 @@ void on_window_resize(void)
if (w->help->active) if (w->help->active)
wclear(w->help->win); wclear(w->help->win);
if (w->is_groupchat) { if (w->show_peerlist) {
delwin(w->chatwin->sidebar); delwin(w->chatwin->sidebar);
w->chatwin->sidebar = NULL; w->chatwin->sidebar = NULL;
} else { } else {
@ -390,7 +390,7 @@ void on_window_resize(void)
} else { } else {
w->chatwin->history = subwin(w->window, y2 - CHATBOX_HEIGHT + 1, x2, 0, 0); w->chatwin->history = subwin(w->window, y2 - CHATBOX_HEIGHT + 1, x2, 0, 0);
if (w->is_chat) if (!w->is_groupchat)
w->stb->topline = subwin(w->window, 2, x2, 0, 0); w->stb->topline = subwin(w->window, 2, x2, 0, 0);
} }