mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-02 17:23:18 +02:00
fix Windows build
This commit is contained in:
parent
3f670118c7
commit
30317efa03
@ -53,7 +53,7 @@ class PrefsPanel /* not final */ : public wxPanelWrapper
|
||||
virtual ~PrefsPanel();
|
||||
|
||||
// NEW virtuals
|
||||
virtual bool Preview() {} // Make tentative changes
|
||||
virtual void Preview() {} // Make tentative changes
|
||||
virtual bool Commit() = 0; // used to be called "Apply"
|
||||
|
||||
// If it returns True, the Preview button is added below the panel
|
||||
|
@ -416,7 +416,7 @@ void SpectrumPrefs::Rollback()
|
||||
}
|
||||
}
|
||||
|
||||
bool SpectrumPrefs::Preview()
|
||||
void SpectrumPrefs::Preview()
|
||||
{
|
||||
if (!Validate())
|
||||
return false;
|
||||
@ -487,6 +487,8 @@ bool SpectrumPrefs::Commit()
|
||||
SpectrogramSettings *const pSettings = &SpectrogramSettings::defaults();
|
||||
pSettings->SavePrefs();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SpectrumPrefs::ShowsPreviewButton()
|
||||
|
@ -44,7 +44,7 @@ class SpectrumPrefs final : public PrefsPanel
|
||||
public:
|
||||
SpectrumPrefs(wxWindow * parent, WaveTrack *wt);
|
||||
virtual ~SpectrumPrefs();
|
||||
bool Preview() override;
|
||||
void Preview() override;
|
||||
bool Commit() override;
|
||||
void Rollback();
|
||||
bool ShowsPreviewButton() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user