diff --git a/src/qt/anybutton.cpp b/src/qt/anybutton.cpp index 1bf235bd46..5c6f880c6b 100644 --- a/src/qt/anybutton.cpp +++ b/src/qt/anybutton.cpp @@ -85,8 +85,9 @@ wxAnyButton::wxAnyButton() : void wxAnyButton::QtCreate(wxWindow *parent) { - // create the default push button (used in button and bmp button) - m_qtPushButton = new wxQtPushButton( parent, this ); + // create the basic push button (used in button and bmp button) + m_qtPushButton = new wxQtPushButton(parent, this); + m_qtPushButton->setAutoDefault(false); } void wxAnyButton::QtSetBitmap( const wxBitmap &bitmap )