From e15c337f573537b97b5bcce3dca51523be2466ec Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 17 Jun 2024 19:55:08 +0200 Subject: [PATCH] Fix crash (invalid Track Drag) when starting automation value edit When double-clicking to edit a fader value three button press events are created: 1. GDK_BUTTON_PRESS 2. GDK_BUTTON_PRESS 3. GDK_2BUTTON_PRESS The first two start an Editor Drag, which later crashes in Editor::mid_track_drag() gtk2_ardour/editor.cc:7067 --- libs/widgets/barcontroller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/widgets/barcontroller.cc b/libs/widgets/barcontroller.cc index a40e6db56d..b5debd2c26 100644 --- a/libs/widgets/barcontroller.cc +++ b/libs/widgets/barcontroller.cc @@ -87,7 +87,7 @@ BarController::on_button_press_event (GdkEventButton* ev) } else { _switch_on_release = false; } - return false; + return 1 == ev->button; } bool