Fix message mismatch in YesNoCancelDialog.

This commit is contained in:
Jeff Young 2018-05-02 21:12:11 +01:00
parent 106dd60e45
commit c842ddfb97
1 changed files with 3 additions and 3 deletions

View File

@ -248,12 +248,12 @@ public:
const wxString& aYesButtonText = wxEmptyString,
const wxString& aNoButtonText = wxEmptyString,
const wxString& aCancelButtonText = wxEmptyString ) :
DIALOG_EXIT( aParent, aSecondaryMessage )
DIALOG_EXIT( aParent, aPrimaryMessage )
{
m_TextInfo->SetLabel( aPrimaryMessage );
if( aSecondaryMessage.IsEmpty() )
m_staticText2->Hide();
else
m_staticText2->SetLabel( aSecondaryMessage );
m_buttonSaveAndExit->SetLabel( aYesButtonText.IsEmpty() ? wxGetStockLabel( wxID_YES ) :
aYesButtonText );