mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-02 17:23:18 +02:00
Redo fix for Bug 2250
While the fix worked for that specific situation, it broke other actions like "All Preferences".
This commit is contained in:
parent
f0d0198850
commit
0572c0a0d4
@ -156,6 +156,14 @@ class ScreenFrameTimer final : public wxTimer
|
||||
evt.reset(event.Clone());
|
||||
}
|
||||
|
||||
virtual ~ScreenFrameTimer()
|
||||
{
|
||||
if (IsRunning())
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
}
|
||||
|
||||
void Notify() override
|
||||
{
|
||||
// Process timer notification just once, then destroy self
|
||||
@ -521,13 +529,11 @@ bool ScreenshotBigDialog::ProcessEvent(wxEvent & e)
|
||||
|
||||
void ScreenshotBigDialog::OnCloseWindow(wxCloseEvent & WXUNUSED(event))
|
||||
{
|
||||
mTimer->Stop();
|
||||
Destroy();
|
||||
}
|
||||
|
||||
void ScreenshotBigDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
mTimer->Stop();
|
||||
Destroy();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user