Commit 9dd1f522 authored by Pierre Fernique's avatar Pierre Fernique

Correct some bugs in parameters

parent bf7cf894
......@@ -83,9 +83,10 @@ bool dtkWidgetsParameterBoolPushButton::connect(dtkCoreParameter *p)
m_parameter->connect([=] (QVariant v)
{
bool state = v.value<dtk::d_bool>().value();
d->running = v.value<dtk::d_bool>().value();
d->push_button->blockSignals(true);
setAppearance(state);
setAppearance(d->running);
d->push_button->setChecked(d->running);
d->push_button->blockSignals(false);
});
......
......@@ -73,7 +73,7 @@ bool dtkWidgetsParameterFileSave::connect(dtkCoreParameter *p)
QObject::connect(d->push_button, &QPushButton::clicked, [=] ()
{
m_parameter->setValue(QFileDialog::getSaveFileName(this, "Save file", m_parameter->dirName(), m_parameter->filters().join("; ")));
m_parameter->setValue(QFileDialog::getSaveFileName(this, "Save file", m_parameter->dirName(), m_parameter->filters().join(";;")));
});
return 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