mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Merge pull request #837 from ailin-nemui/no-show
check the error condition of mainwindow_create
This commit is contained in:
commit
442f6f08b4
@ -1393,6 +1393,11 @@ static void _cmd_window_show_opt(const char *data, int right)
|
|||||||
}
|
}
|
||||||
|
|
||||||
parent = mainwindow_create(right);
|
parent = mainwindow_create(right);
|
||||||
|
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…
Reference in New Issue
Block a user