mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-02 15:13:50 +01:00
Bug1409 again: Dismiss Mac help window, be sure parent regains focus
This commit is contained in:
@@ -57,8 +57,18 @@ void BrowserDialog::OnBackward(wxCommandEvent & WXUNUSED(event))
|
|||||||
void BrowserDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
void BrowserDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
||||||
{
|
{
|
||||||
EndModal(wxID_CANCEL);
|
EndModal(wxID_CANCEL);
|
||||||
#ifndef __WXMAC__
|
auto parent = GetParent();
|
||||||
GetParent()->Destroy();
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
auto grandparent = GetParent()->GetParent();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
parent->Destroy();
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
if(grandparent && grandparent->IsShown()) {
|
||||||
|
grandparent->Raise();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user