All: fix bug making IsOK dialog always returns false, regardless the button clicked.

This commit is contained in:
jean-pierre charras 2013-10-19 15:22:24 +02:00
parent b0e2908c9b
commit 503ee825c9
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ bool IsOK( wxWindow* aParent, const wxString& aMessage )
wxMessageDialog dlg( aParent, aMessage, _( "Confirmation" ), wxMessageDialog dlg( aParent, aMessage, _( "Confirmation" ),
wxYES_NO | wxCENTRE | wxICON_HAND ); wxYES_NO | wxCENTRE | wxICON_HAND );
return dlg.ShowModal() == wxYES; return dlg.ShowModal() == wxID_YES;
} }