Merge pull request #5532 from AenBleidd/vko_fix_close_windows_issue_on_linux

[Linux] When user closes BOINC Manager window with the EventLog open, close properly the application
This commit is contained in:
David Anderson 2024-03-07 16:05:09 -08:00 committed by GitHub
commit 84f3bd991e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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"));
}