summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio/main.cpp
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-05-08 10:35:14 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-08 12:16:10 +0200
commitf0cbaf453c3c1dab6a0d0c1e4f8e47176f6e7f34 (patch)
treebd7e8b4dcaaa6263240e6365bfdc6dd376af139c /DevTools/HackStudio/main.cpp
parenta3367cf4fa7704cab64f7860d40caf2770c7d7cc (diff)
downloadserenity-f0cbaf453c3c1dab6a0d0c1e4f8e47176f6e7f34.zip
HackStudio: Close the debug tab when debugged program exits
Diffstat (limited to 'DevTools/HackStudio/main.cpp')
-rw-r--r--DevTools/HackStudio/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp
index b9dbc7ad85..7d44a12ad4 100644
--- a/DevTools/HackStudio/main.cpp
+++ b/DevTools/HackStudio/main.cpp
@@ -631,6 +631,8 @@ int main(int argc, char** argv)
},
[&]() {
dbg() << "Program exited";
+ debug_info_widget.program_stopped();
+ hide_action_tabs();
Core::EventLoop::main().post_event(*g_window, make<Core::DeferredInvocationEvent>([=](auto&) {
GUI::MessageBox::show("Program Exited", "Debugger", GUI::MessageBox::Type::Information, GUI::MessageBox::InputType::OK, g_window);
}));