From: Steinar H. Gunderson Date: Fri, 10 Feb 2017 23:45:05 +0000 (+0100) Subject: When the output card is active, disable the controls to change the master clock ... X-Git-Tag: 1.5.0~46 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d1e67a155d9226a44f0a43d1fa96c68b0df4f36f;p=nageru When the output card is active, disable the controls to change the master clock -- it is locked anyway. --- diff --git a/glwidget.cpp b/glwidget.cpp index 3494338..ae4b62f 100644 --- a/glwidget.cpp +++ b/glwidget.cpp @@ -320,7 +320,10 @@ void GLWidget::show_preview_context_menu(unsigned signal_num, const QPoint &pos) // And a master clock selector. QAction *master_clock_action = new QAction("Use as master clock", &menu); master_clock_action->setCheckable(true); - if (global_mixer->get_master_clock() == signal_num) { + if (global_mixer->get_output_card_index() != -1) { + master_clock_action->setChecked(false); + master_clock_action->setEnabled(false); + } else if (global_mixer->get_master_clock() == signal_num) { master_clock_action->setChecked(true); master_clock_action->setEnabled(false); }