1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

HackStudio: File search box stays opened after closing

Fix ##5061 by passing the parent widget down to the locator object
and having the locator object parent it's window to it.
This commit is contained in:
Tim Waterhouse 2021-04-03 20:37:09 -07:00 committed by Andreas Kling
parent 8e4e640717
commit 7648f6aa7b
2 changed files with 11 additions and 8 deletions

View file

@ -45,7 +45,7 @@ private:
void update_suggestions();
void open_suggestion(const GUI::ModelIndex&);
Locator();
Locator(Core::Object* parent = nullptr);
RefPtr<GUI::TextBox> m_textbox;
RefPtr<GUI::Window> m_popup_window;