Commit cca9745a authored by Erwan Demairy's avatar Erwan Demairy
Browse files

Dispatch again the path value when the button is shift-clicked.

parent 4a095858
Pipeline #256333 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) {
qInfo() << "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