mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #501 from ailin-nemui/more-crash
check for NULL in statusbar_more_updated
This commit is contained in:
commit
b8f7eaad40
@ -289,6 +289,10 @@ static void sig_statusbar_more_updated(void)
|
|||||||
{
|
{
|
||||||
int visible;
|
int visible;
|
||||||
|
|
||||||
|
/* no active window, for example during /window hide */
|
||||||
|
if (active_win == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
visible = g_slist_find(more_visible, WINDOW_MAIN(active_win)) != NULL;
|
visible = g_slist_find(more_visible, WINDOW_MAIN(active_win)) != NULL;
|
||||||
if (WINDOW_GUI(active_win)->view->more_text != visible)
|
if (WINDOW_GUI(active_win)->view->more_text != visible)
|
||||||
statusbar_items_redraw("more");
|
statusbar_items_redraw("more");
|
||||||
|
Loading…
Reference in New Issue
Block a user