From bc4957b24e6939f4e681e9412f9bbdd483a6bc35 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Jun 2015 22:51:17 +0300 Subject: Fix removing listeners from window if used guitable as container. This fixing crash with settings window after reconnect to server. --- src/gui/widgets/textfield.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/widgets/textfield.h') diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h index 79ad3f110..0c5335143 100644 --- a/src/gui/widgets/textfield.h +++ b/src/gui/widgets/textfield.h @@ -231,6 +231,8 @@ class TextField notfinal : public Widget, void setParent(Widget *widget) override final; + void setWindow(Widget *const widget) override final; + protected: void drawCaret(Graphics* graphics, int x); -- cgit v1.2.3-70-g09d2