Fixes window close action on Linux

This commit is contained in:
Germano Massullo 2019-04-12 14:16:28 +02:00
parent 18aa95e084
commit 581a051ab1
1 changed files with 2 additions and 3 deletions

View File

@ -330,9 +330,8 @@ void CBOINCBaseFrame::OnClose(wxCloseEvent& event) {
Destroy();
} else {
#ifdef __WXGTK__
// Apparently aborting a close event just causes the main window to be displayed
// again. Just minimize the window instead.
Iconize();
wxGetApp().FrameClosed();
Destroy();
#else
Hide();
#endif