diff options
-rw-r--r-- | src/misc_gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index e6370d969..684b225ab 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -997,10 +997,9 @@ enum QueryStringWidgets { struct QueryStringWindow : public QueryStringBaseWindow { - Window *parent; - - QueryStringWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc), parent(parent) + QueryStringWindow(const WindowDesc *desc, Window *parent) : QueryStringBaseWindow(desc) { + this->parent = parent; SetBit(_no_scroll, SCROLL_EDIT); this->FindWindowPlacementAndResize(desc); |