diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-24 23:22:15 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-24 23:22:15 +0200 |
commit | 01f89856170f907cd8f1e2e33054a994846b995b (patch) | |
tree | 4ae1792ac19fed6d9996a583208d9a807bffe46b /gtk2_ardour/ardour_knob.cc | |
parent | eea297dc3ec3d79f6823818d3137a9ee8557eca8 (diff) |
don’t knob show tooltips if no prefix is set
ie the monitor section has explicit labels.
Diffstat (limited to 'gtk2_ardour/ardour_knob.cc')
-rw-r--r-- | gtk2_ardour/ardour_knob.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_knob.cc b/gtk2_ardour/ardour_knob.cc index 3f5271c9d3..a960b8ec5d 100644 --- a/gtk2_ardour/ardour_knob.cc +++ b/gtk2_ardour/ardour_knob.cc @@ -382,7 +382,9 @@ ArdourKnob::controllable_changed () _val = c->get_interface(); //% of knob travel _val = min( max(0.0f, _val), 1.0f); //range check - ARDOUR_UI::instance()->set_tip (*this, _tooltip_prefix + c->get_user_string()); + if (!_tooltip_prefix.empty()) { + ARDOUR_UI::instance()->set_tip (*this, _tooltip_prefix + c->get_user_string()); + } set_dirty(); } |