Commit beb3507c authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix shareValue

parent 4f0c2f88
......@@ -73,7 +73,8 @@ bool dtkWidgetsParameterDirBrowse::connect(dtkCoreParameter *p)
QObject::connect(d->push_button, &QPushButton::clicked, [=] ()
{
m_parameter->setValue(QFileDialog::getExistingDirectory(this, "Open Directory", m_parameter->dirName()));
QString v = QFileDialog::getExistingDirectory(this, "Open Directory", m_parameter->dirName());
m_parameter->shareValue(QVariant::fromValue(v));
});
return true;
......
......@@ -74,7 +74,7 @@ bool dtkWidgetsParameterFileSave::connect(dtkCoreParameter *p)
QObject::connect(d->push_button, &QPushButton::clicked, [=] ()
{
QString v = QFileDialog::getSaveFileName(this, "Save file", m_parameter->dirName(), m_parameter->filters().join(";;"));
m_parameter->setValue(QVariant::fromValue(v));
m_parameter->shareValue(QVariant::fromValue(v));
});
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