mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-19 20:06:09 +01:00
gtkmm2ext: fix a bug that can arise when using ad-hoc Gtk::Actions with non-standard paths
This commit is contained in:
parent
e1c21bc619
commit
7e9c73b807
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue