mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-17 16:50:26 +02:00
Fix unbalanced event handler push/pop
Fix was provided by Hans Petter Selasky with the following comment: This is a regression issue after: Move the scrub mouse event handler into ScrubUI... Where: if (mWindow) mWindow->PushEventHandler(&mForwarder); was removed from the Scrubber() constructor function and not from the ~Scrubber().
This commit is contained in:
parent
26827bc5e5
commit
8ac5699fcd
@ -271,7 +271,6 @@ 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,9 +241,6 @@ Scrubber::~Scrubber()
|
||||
if (mpThread)
|
||||
mpThread->Delete();
|
||||
#endif
|
||||
|
||||
if ( mWindow )
|
||||
mWindow->PopEventHandler();
|
||||
}
|
||||
|
||||
static const auto HasWaveDataPred =
|
||||
|
Loading…
x
Reference in New Issue
Block a user