mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 17:18:41 +02:00
Revert "Fix unbalanced event handler push/pop"
This reverts commit 8ac5699fcd625c102eacc3058ab748d3c5860006.
This commit is contained in:
parent
80662a1b60
commit
d06625ba60
@ -271,6 +271,7 @@ static const AudacityProject::AttachedObjects::RegisteredFactory sForwarderKey{
|
|||||||
[]( AudacityProject &parent ){
|
[]( AudacityProject &parent ){
|
||||||
auto result = std::make_shared< ScrubForwarder >( parent );
|
auto result = std::make_shared< ScrubForwarder >( parent );
|
||||||
auto &window = ProjectWindow::Get( parent );
|
auto &window = ProjectWindow::Get( parent );
|
||||||
|
window.PushEventHandler( result.get() );
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -241,6 +241,9 @@ Scrubber::~Scrubber()
|
|||||||
if (mpThread)
|
if (mpThread)
|
||||||
mpThread->Delete();
|
mpThread->Delete();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( mWindow )
|
||||||
|
mWindow->PopEventHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
static const auto HasWaveDataPred =
|
static const auto HasWaveDataPred =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user