1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Change affirmative button label to OK for modal dialogs

This commit is contained in:
Leland Lucius 2015-04-27 13:16:08 -05:00
parent 2d5a68e4a4
commit e684fe9e1f
2 changed files with 9 additions and 9 deletions

View File

@ -24,12 +24,13 @@ greater use in future.
#include "../Audacity.h"
#include <wx/defs.h>
#include <wx/string.h>
#include <wx/hashmap.h>
#include <wx/msgdlg.h>
#include <wx/sizer.h>
#include <wx/timer.h>
#include <wx/stockitem.h>
#include <wx/string.h>
#include <wx/tglbtn.h>
#include <wx/hashmap.h>
#include <wx/timer.h>
#include <wx/utils.h>
#include "audacity/ConfigInterface.h"
@ -2738,15 +2739,17 @@ bool EffectUIHost::TransferDataFromWindow()
// wxDialog implementation
// ============================================================================
#if defined(__WXMAC__)
// See explanation in EffectUIHost::Show()
int EffectUIHost::ShowModal()
{
#if defined(__WXMAC__)
// See explanation in EffectUIHost::Show()
mIsModal = true;
#endif
mApplyBtn->SetLabel(wxGetStockLabel(wxID_OK));
return wxDialog::ShowModal();
}
#endif
// ============================================================================
// EffectUIHost implementation
@ -3659,7 +3662,6 @@ void EffectPresetsDialog::SetPrefix(const wxString & type, const wxString & pref
{
mType->SetStringSelection(type);
int selected;
if (type.IsSameAs(_("User Presets")))
{
mPresets->Clear();

View File

@ -480,9 +480,7 @@ public:
virtual bool TransferDataToWindow();
virtual bool TransferDataFromWindow();
#if defined(__WXMAC__)
virtual int ShowModal();
#endif
bool Initialize();