1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 14:18:41 +02:00

Bug1318 fixed again so that generators and effects on Windows still work

This commit is contained in:
Paul Licameli 2016-04-24 10:30:46 -04:00
parent 879ecefdaa
commit f2c6fbfc1b
2 changed files with 5 additions and 3 deletions

View File

@ -3245,6 +3245,8 @@ void EffectUIHost::OnApply(wxCommandEvent & evt)
if (IsModal())
{
mDismissed = true;
EndModal(true);
Close();
@ -3265,7 +3267,7 @@ void EffectUIHost::OnApply(wxCommandEvent & evt)
void EffectUIHost::DoCancel()
{
if (!mCancelled) {
if (!mDismissed) {
mEffect->mUIResultID = wxID_CANCEL;
if (IsModal())
@ -3273,7 +3275,7 @@ void EffectUIHost::DoCancel()
else
Hide();
mCancelled = true;
mDismissed = true;
}
}

View File

@ -659,7 +659,7 @@ private:
SelectedRegion mRegion;
double mPlayPos;
bool mCancelled{};
bool mDismissed{};
DECLARE_EVENT_TABLE();
};