diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-06 23:45:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-06 23:45:20 +0000 |
commit | e430668431075d473da6b333961efd7e8e1544bd (patch) | |
tree | 568db34c3823817807cb36a2431f35a3fd3a4150 /libs/gtkmm2ext/gtk_ui.cc | |
parent | c06c6c153db6b33b93515100d839f376dc805d5d (diff) |
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
Diffstat (limited to 'libs/gtkmm2ext/gtk_ui.cc')
-rw-r--r-- | libs/gtkmm2ext/gtk_ui.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc index 6474f1828d..456b8e29c8 100644 --- a/libs/gtkmm2ext/gtk_ui.cc +++ b/libs/gtkmm2ext/gtk_ui.cc @@ -333,10 +333,13 @@ 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); - if (has_key && key.get_abbrev() != "") { - msg.append("\n\n Key: ").append(key.get_abbrev()); - } + 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) { |