Error Log button, only handle LMB
Allow to fall though to the bar’s context menu.
This commit is contained in:
parent
741bcc9fa4
commit
a2bcb815ef
|
@ -334,6 +334,7 @@ ARDOUR_UI::setup_transport ()
|
|||
error_alert_button.signal_button_press_event().connect (sigc::mem_fun(*this,&ARDOUR_UI::error_alert_press), false);
|
||||
act = ActionManager::get_action (X_("Editor"), X_("toggle-log-window"));
|
||||
error_alert_button.set_related_action(act);
|
||||
error_alert_button.set_fallthrough_to_parent(true);
|
||||
|
||||
alert_box.set_homogeneous (true);
|
||||
alert_box.set_spacing (2);
|
||||
|
@ -546,8 +547,11 @@ ARDOUR_UI::feedback_alert_press (GdkEventButton *)
|
|||
}
|
||||
|
||||
bool
|
||||
ARDOUR_UI::error_alert_press (GdkEventButton*)
|
||||
ARDOUR_UI::error_alert_press (GdkEventButton* ev)
|
||||
{
|
||||
if (ev->button != 1) {
|
||||
return false;
|
||||
}
|
||||
_log_not_acknowledged = LogLevelNone;
|
||||
error_blink (false); // immediate acknowledge
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue