mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 00:58:37 +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 ){
|
||||
auto result = std::make_shared< ScrubForwarder >( parent );
|
||||
auto &window = ProjectWindow::Get( parent );
|
||||
window.PushEventHandler( result.get() );
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
@ -241,6 +241,9 @@ Scrubber::~Scrubber()
|
||||
if (mpThread)
|
||||
mpThread->Delete();
|
||||
#endif
|
||||
|
||||
if ( mWindow )
|
||||
mWindow->PopEventHandler();
|
||||
}
|
||||
|
||||
static const auto HasWaveDataPred =
|
||||
|
Loading…
x
Reference in New Issue
Block a user