mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 04:51:11 -05:00
Merge pull request #837 from ailin-nemui/no-show
check the error condition of mainwindow_create (cherry picked from commit 442f6f08b4d99e86c3961be71638abec0f0f8070)
This commit is contained in:
parent
36564717c9
commit
191b01a70e
@ -810,6 +810,11 @@ static void cmd_window_show(const char *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent = mainwindow_create();
|
parent = mainwindow_create();
|
||||||
|
if (parent == NULL) {
|
||||||
|
printformat_window(active_win, MSGLEVEL_CLIENTERROR, TXT_WINDOW_TOO_SMALL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
parent->active = window;
|
parent->active = window;
|
||||||
gui_window_reparent(window, parent);
|
gui_window_reparent(window, parent);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user