diff --git a/src/myframe.h b/src/myframe.h index 93e8ed7f..8fe62724 100755 --- a/src/myframe.h +++ b/src/myframe.h @@ -1046,7 +1046,10 @@ struct MyFrame : wxFrame { } void ReFocus() { - if (wxWindow::HasFocus()) { + #ifdef __WXGTK__ + if (wxWindow::HasFocus()) + #endif + { if (GetCurTab()) GetCurTab()->SetFocus(); } }