don't try to look up the key info for actions that don't have accel paths
git-svn-id: svn://localhost/ardour2/branches/3.0@7557 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c06c6c153d
commit
e430668431
@ -333,11 +333,14 @@ UI::set_tip (Widget *w, const gchar *tip, const gchar *hlp)
|
||||
Glib::RefPtr<Gtk::Action> action = w->get_action();
|
||||
if (action) {
|
||||
Gtk::AccelKey key;
|
||||
bool has_key = ActionManager::lookup_entry(action->get_accel_path(), key);
|
||||
ustring ap = action->get_accel_path();
|
||||
if (!ap.empty()) {
|
||||
bool has_key = ActionManager::lookup_entry(ap, key);
|
||||
if (has_key && key.get_abbrev() != "") {
|
||||
msg.append("\n\n Key: ").append(key.get_abbrev());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (req == 0) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user