forked from PsychoticNinja/irssi
Merge pull request #1114 from ailin-nemui/startup-crash
fix crash on startup when resizing before active_win (cherry picked from commit 570d6714ec3f9a55940eaf953dc7914c2534c3e2)
This commit is contained in:
parent
5b923493de
commit
15867d62e7
@ -829,7 +829,7 @@ void mainwindows_resize(int width, int height)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if we lost our active mainwin, get a new one */
|
/* if we lost our active mainwin, get a new one */
|
||||||
if (active_mainwin == NULL && !quitting) {
|
if (active_mainwin == NULL && active_win != NULL && !quitting) {
|
||||||
active_mainwin = WINDOW_MAIN(active_win);
|
active_mainwin = WINDOW_MAIN(active_win);
|
||||||
window_set_active(active_mainwin->active);
|
window_set_active(active_mainwin->active);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user