Commit e54192e4 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

Merge branch...

Merge branch 'feature/72-dtkwidgetsparameterbrowse-should-allow-to-reload-the-current-path' into 'develop'

Resolve "dtkWidgetsParameterBrowse should allow to reload the current path"

Closes #72

See merge request !79
parents 4a095858 ab3b9e95
Pipeline #260528 passed with stage
in 0 seconds
......@@ -109,7 +109,15 @@ bool dtkWidgetsParameterBrowse::connect(dtkCoreParameter *p)
QObject::connect(d->push_button, &QPushButton::clicked, [=] ()
{
QString v = this->browse();
QString v;
Qt::KeyboardModifiers modifiers = QApplication::queryKeyboardModifiers();
if (modifiers & Qt::ShiftModifier) {
dtkInfo() << "reloading path " << m_parameter->path();
v = m_parameter->path();
} else {
v = this->browse();
}
m_parameter->shareValue(QVariant::fromValue(v));
});
......
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