mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-06 23:47:45 +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());
|
evt.reset(event.Clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual ~ScreenFrameTimer()
|
||||||
|
{
|
||||||
|
if (IsRunning())
|
||||||
|
{
|
||||||
|
Stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Notify() override
|
void Notify() override
|
||||||
{
|
{
|
||||||
// Process timer notification just once, then destroy self
|
// Process timer notification just once, then destroy self
|
||||||
@ -521,13 +529,11 @@ bool ScreenshotBigDialog::ProcessEvent(wxEvent & e)
|
|||||||
|
|
||||||
void ScreenshotBigDialog::OnCloseWindow(wxCloseEvent & WXUNUSED(event))
|
void ScreenshotBigDialog::OnCloseWindow(wxCloseEvent & WXUNUSED(event))
|
||||||
{
|
{
|
||||||
mTimer->Stop();
|
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenshotBigDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
void ScreenshotBigDialog::OnClose(wxCommandEvent & WXUNUSED(event))
|
||||||
{
|
{
|
||||||
mTimer->Stop();
|
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user