From e430668431075d473da6b333961efd7e8e1544bd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 6 Aug 2010 23:45:20 +0000 Subject: [PATCH] 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 --- libs/gtkmm2ext/gtk_ui.cc | 11 +++++++---- 1 file 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 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) {