mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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:
parent
c2b2d45bd6
commit
a914b60689
@ -194,6 +194,8 @@ void gui_window_reparent(WINDOW_REC *window, MAIN_WINDOW_REC *parent)
|
|||||||
if (oldparent == parent)
|
if (oldparent == parent)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
textbuffer_view_set_window(WINDOW_GUI(window)->view, NULL);
|
||||||
|
|
||||||
WINDOW_GUI(window)->parent = parent;
|
WINDOW_GUI(window)->parent = parent;
|
||||||
if (parent->height != oldparent->height ||
|
if (parent->height != oldparent->height ||
|
||||||
parent->width != oldparent->width)
|
parent->width != oldparent->width)
|
||||||
|
Loading…
Reference in New Issue
Block a user