All: fix bug making IsOK dialog always returns false, regardless the button clicked.
This commit is contained in:
parent
b0e2908c9b
commit
503ee825c9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue