summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Nilsson <brainbomb@gmail.com>2021-06-02 22:01:16 +0200
committerLinus Groh <mail@linusgroh.de>2021-06-02 23:15:52 +0100
commit8d3539a1c4ee84569d0d1fcfdc018b098af10586 (patch)
treeca52ddc3583034f06b234f7602b08d3b8f37eb68
parent3ad7a1e944106b23098f9097f12bcdc475789b61 (diff)
downloadserenity-8d3539a1c4ee84569d0d1fcfdc018b098af10586.zip
HackStudio: Close locator on exit
-rw-r--r--Userland/DevTools/HackStudio/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp
index 436b1122a1..d0239e61c8 100644
--- a/Userland/DevTools/HackStudio/main.cpp
+++ b/Userland/DevTools/HackStudio/main.cpp
@@ -77,6 +77,7 @@ int main(int argc, char** argv)
s_window->set_menubar(menubar);
s_window->on_close_request = [&]() -> GUI::Window::CloseRequestDecision {
+ s_hack_studio_widget->locator().close();
if (s_hack_studio_widget->warn_unsaved_changes("There are unsaved changes, do you want to save before exiting?") == HackStudioWidget::ContinueDecision::Yes)
return GUI::Window::CloseRequestDecision::Close;
return GUI::Window::CloseRequestDecision::StayOpen;