From 6528829796be52f7ccb477d01e404221b19169e5 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 19 Oct 2013 15:22:24 +0200 Subject: [PATCH] All: fix bug making IsOK dialog always returns false, regardless the button clicked. --- common/confirm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/confirm.cpp b/common/confirm.cpp index 28a3b85d06..b44186da9b 100644 --- a/common/confirm.cpp +++ b/common/confirm.cpp @@ -110,7 +110,7 @@ bool IsOK( wxWindow* aParent, const wxString& aMessage ) wxMessageDialog dlg( aParent, aMessage, _( "Confirmation" ), wxYES_NO | wxCENTRE | wxICON_HAND ); - return dlg.ShowModal() == wxYES; + return dlg.ShowModal() == wxID_YES; }