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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user