1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

don't crash with /WINDOW HIDE

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1504 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-05-17 20:52:43 +00:00 committed by cras
parent c2b2d45bd6
commit a914b60689

View File

@ -194,6 +194,8 @@ void gui_window_reparent(WINDOW_REC *window, MAIN_WINDOW_REC *parent)
if (oldparent == parent)
return;
textbuffer_view_set_window(WINDOW_GUI(window)->view, NULL);
WINDOW_GUI(window)->parent = parent;
if (parent->height != oldparent->height ||
parent->width != oldparent->width)