mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
fix crash on startup when resizing before active_win
This commit is contained in:
parent
3f0afa91f3
commit
44b060ce17
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user