13
0

make dbl-click on mixer strip name button start a rename

This commit is contained in:
Paul Davis 2024-05-07 16:34:55 -06:00
parent 35d8cf7026
commit 75b245cc98

View File

@ -1262,11 +1262,16 @@ MixerStrip::build_route_ops_menu ()
gboolean gboolean
MixerStrip::name_button_button_press (GdkEventButton* ev) MixerStrip::name_button_button_press (GdkEventButton* ev)
{ {
if (ev->button == 1) { if (ev->button == 1 && ev->type == GDK_BUTTON_PRESS) {
/* fall thru to mixer */ /* fall thru to mixer */
return false; return false;
} }
if (ev->button == 1 && ev->type == GDK_2BUTTON_PRESS) {
route_rename ();
return true;
}
if (ev->button == 3 && ARDOUR::Profile->get_livetrax() && _route && _route->is_singleton ()) { if (ev->button == 3 && ARDOUR::Profile->get_livetrax() && _route && _route->is_singleton ()) {
return true; return true;
} }