1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-12 06:37:52 +02:00

Fix Windows build again

This commit is contained in:
Paul Licameli 2017-06-25 15:26:30 -04:00
parent d3c9a1decb
commit 52322da695

View File

@ -419,7 +419,7 @@ void SpectrumPrefs::Rollback()
void SpectrumPrefs::Preview() void SpectrumPrefs::Preview()
{ {
if (!Validate()) if (!Validate())
return false; return;
const bool isOpenPage = this->IsShown(); const bool isOpenPage = this->IsShown();
@ -475,12 +475,13 @@ void SpectrumPrefs::Preview()
tp->UpdateVRulers(); tp->UpdateVRulers();
tp->Refresh(false); tp->Refresh(false);
} }
return true;
} }
bool SpectrumPrefs::Commit() bool SpectrumPrefs::Commit()
{ {
if (!Validate())
return false;
mCommitted = true; mCommitted = true;
SpectrogramSettings::Globals::Get().SavePrefs(); // always SpectrogramSettings::Globals::Get().SavePrefs(); // always
if (!mWt || mDefaulted) { if (!mWt || mDefaulted) {