From 818dd572c4213c5e1d66962e653e55761293f23a Mon Sep 17 00:00:00 2001 From: Vitalii Koshura Date: Thu, 7 Mar 2024 22:57:28 +0100 Subject: [PATCH] [Linux] When user closes BOINC Manager window with the EventLog open, close properly the application This fixes: #4100. Signed-off-by: Vitalii Koshura --- clientgui/AdvancedFrame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index cc4c634b77..1af5122a45 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -290,6 +290,12 @@ CAdvancedFrame::~CAdvancedFrame() { wxCHECK_RET(DeleteNotebook(), _T("Failed to delete notebook.")); } +#ifdef __WXGTK__ + if (wxGetApp().GetEventLog()) { + wxGetApp().GetEventLog()->Close(); + } +#endif + wxLogTrace(wxT("Function Start/End"), wxT("CAdvancedFrame::~CAdvancedFrame - Function End")); }