diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index 479c710950..4b7aeadc13 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -282,6 +282,9 @@ bool DIALOG_SHIM::Show( bool show ) ret = wxDialog::Show( show ); } + if( m_parent ) + m_parent->SetFocus(); + return ret; } @@ -483,6 +486,9 @@ int DIALOG_SHIM::ShowQuasiModal() m_qmodal_showing = false; + if( parent ) + parent->SetFocus(); + return GetReturnCode(); }