13
0

don’t knob show tooltips if no prefix is set

ie the monitor section has explicit labels.
This commit is contained in:
Robin Gareus 2015-04-24 23:22:15 +02:00
parent eea297dc3e
commit 01f8985617

View File

@ -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();
}