From 7fde05e8eedd816e9fcc3891b233d096b9e86038 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 17 Jun 2021 18:23:58 +0100 Subject: [PATCH] Add title to Save Changes dialog. --- common/confirm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/confirm.cpp b/common/confirm.cpp index 95a9edf59e..4eea0edc77 100644 --- a/common/confirm.cpp +++ b/common/confirm.cpp @@ -155,7 +155,7 @@ int UnsavedChangesDialog( wxWindow* parent, wxString aMessage, bool* aApplyToAll { static bool s_apply_to_all = false; - wxRichMessageDialog dlg( parent, aMessage, wxEmptyString, + wxRichMessageDialog dlg( parent, aMessage, _( "Save Changes?" ), wxYES_NO | wxCANCEL | wxYES_DEFAULT | wxICON_WARNING | wxCENTER ); dlg.SetExtendedMessage( _( "If you don't save, all your changes will be permanently lost." ) ); dlg.SetYesNoLabels( _( "Save" ), _( "Discard Changes" ) ); @@ -182,7 +182,7 @@ int UnsavedChangesDialog( wxWindow* parent, const wxString& aMessage ) // wxWidgets gets the button order wrong on Mac so use the other dialog. return UnsavedChangesDialog( parent, aMessage, nullptr ); #else - wxMessageDialog dlg( parent, aMessage, wxEmptyString, + wxMessageDialog dlg( parent, aMessage, _( "Save Changes?" ), wxYES_NO | wxCANCEL | wxYES_DEFAULT | wxICON_WARNING | wxCENTER ); dlg.SetExtendedMessage( _( "If you don't save, all your changes will be permanently lost." ) ); dlg.SetYesNoLabels( _( "Save" ), _( "Discard Changes" ) );