gtkmm2ext: fix a bug that can arise when using ad-hoc Gtk::Actions with non-standard paths

This commit is contained in:
Paul Davis 2026-01-05 16:21:57 -07:00
parent e1c21bc619
commit 7e9c73b807

View file

@ -399,7 +399,12 @@ string
Bindings::ardour_action_name (RefPtr<Action> action)
{
/* Skip "<Actions>/" */
return action->get_accel_path ().substr (10);
string ap (action->get_accel_path());
if (ap.size() > 10) {
return ap.substr (10);
}
/* No idea what this */
return ap;
}
KeyboardKey