13
0

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:
Paul Davis 2010-08-06 23:45:20 +00:00
parent c06c6c153d
commit e430668431

View File

@ -333,10 +333,13 @@ UI::set_tip (Widget *w, const gchar *tip, const gchar *hlp)
Glib::RefPtr<Gtk::Action> action = w->get_action(); Glib::RefPtr<Gtk::Action> action = w->get_action();
if (action) { if (action) {
Gtk::AccelKey key; Gtk::AccelKey key;
bool has_key = ActionManager::lookup_entry(action->get_accel_path(), key); ustring ap = action->get_accel_path();
if (has_key && key.get_abbrev() != "") { if (!ap.empty()) {
msg.append("\n\n Key: ").append(key.get_abbrev()); 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) { if (req == 0) {