1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #1114 from ailin-nemui/startup-crash

fix crash on startup when resizing before active_win

(cherry picked from commit 570d6714ec)
This commit is contained in:
ailin-nemui 2019-08-27 15:12:04 +02:00
parent 5b923493de
commit 15867d62e7

View File

@ -829,7 +829,7 @@ void mainwindows_resize(int width, int height)
}
/* 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);
window_set_active(active_mainwin->active);
}