mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Merge pull request #1114 from ailin-nemui/startup-crash
fix crash on startup when resizing before active_win
This commit is contained in:
commit
570d6714ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue