diff --git a/src/gtk/msgdlg.cpp b/src/gtk/msgdlg.cpp index 9ff9896732..43d0f79be8 100644 --- a/src/gtk/msgdlg.cpp +++ b/src/gtk/msgdlg.cpp @@ -266,6 +266,8 @@ void wxMessageDialog::GTKCreateMsgDialog() defaultButton = GTK_RESPONSE_NO; else if ( m_dialogStyle & wxYES_NO ) defaultButton = GTK_RESPONSE_YES; + else if ( m_dialogStyle & wxOK ) + defaultButton = GTK_RESPONSE_OK; else // No need to change the default value, whatever it is. defaultButton = GTK_RESPONSE_NONE;