mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
check the error condition of mainwindow_create
This commit is contained in:
parent
6d42c4f949
commit
5b5bfef035
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue