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:
parent
879ecefdaa
commit
f2c6fbfc1b
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -659,7 +659,7 @@ private:
|
||||
SelectedRegion mRegion;
|
||||
double mPlayPos;
|
||||
|
||||
bool mCancelled{};
|
||||
bool mDismissed{};
|
||||
|
||||
DECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user