mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue