Commit 167eaacf authored by Juku Trump's avatar Juku Trump
Browse files

Fix the integer value of effect parameter's checkbox. Fixes #880

parent 5eeb81c6
Pipeline #44785 passed with stage
in 10 minutes and 13 seconds
......@@ -42,6 +42,11 @@ BoolParamWidget::BoolParamWidget(std::shared_ptr<AssetParameterModel> model, QMo
// emit the signal of the base class when appropriate
connect(this->m_checkBox, &QCheckBox::stateChanged, this, [this](int state) {
// To represent 'checked' status, Qt uses number '2', but
// the boolean parameters in MLT effects use number '1'
if (state == 2) {
state = 1;
}
emit valueChanged(m_index, QString::number(state), true); });
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment