diff options
author | Itamar <itamar8910@gmail.com> | 2020-05-08 10:35:14 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-08 12:16:10 +0200 |
commit | f0cbaf453c3c1dab6a0d0c1e4f8e47176f6e7f34 (patch) | |
tree | bd7e8b4dcaaa6263240e6365bfdc6dd376af139c | |
parent | a3367cf4fa7704cab64f7860d40caf2770c7d7cc (diff) | |
download | serenity-f0cbaf453c3c1dab6a0d0c1e4f8e47176f6e7f34.zip |
HackStudio: Close the debug tab when debugged program exits
-rw-r--r-- | DevTools/HackStudio/DebugInfoWidget.h | 1 | ||||
-rw-r--r-- | DevTools/HackStudio/main.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/DevTools/HackStudio/DebugInfoWidget.h b/DevTools/HackStudio/DebugInfoWidget.h index 83fad11d8c..ca3c7e65b0 100644 --- a/DevTools/HackStudio/DebugInfoWidget.h +++ b/DevTools/HackStudio/DebugInfoWidget.h @@ -61,6 +61,7 @@ public: virtual ~DebugInfoWidget() override {} void update_variables(const PtraceRegisters&); + void program_stopped(); private: explicit DebugInfoWidget(); 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); })); |