1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 14:13:57 +01:00

Fix for bug #879

This commit is contained in:
Leland Lucius
2015-05-17 01:02:52 -05:00
parent b60e4e3b2c
commit 913cfe23b4
2 changed files with 13 additions and 2 deletions

View File

@@ -3089,10 +3089,18 @@ void EffectUIHost::OnApply(wxCommandEvent & evt)
return;
}
// Honor the "select all if none" preference...a little hackish, but whatcha gonna do...
if (!mIsBatch && mEffect->GetType() != EffectTypeGenerate && mProject->mViewInfo.selectedRegion.isPoint())
{
wxMessageBox(_("You must select audio in the project window."));
return;
wxUint32 flags = 0;
bool allowed = mProject->TryToMakeActionAllowed(flags,
WaveTracksSelectedFlag | TimeSelectedFlag,
WaveTracksSelectedFlag | TimeSelectedFlag);
if (!allowed)
{
wxMessageBox(_("You must select audio in the project window."));
return;
}
}
if (!mClient->ValidateUI())