Utils: Do not update pathchooser value from displayed string

The displayed string may differ from its "real" resulting path
depending on having a base directory or not.

Fixes: QTCREATORBUG-26408
Change-Id: Ic569671899329249559a2bfb3ecd30190f166dba
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2021-10-29 09:16:13 +02:00
parent f08d0e3d3e
commit a8d5929be3

View File

@@ -1081,8 +1081,9 @@ void StringAspect::addToLayout(LayoutBuilder &builder)
d->m_blockAutoApply = false;
});
} else {
connect(d->m_pathChooserDisplay, &PathChooser::pathChanged, this, [this] {
setValue(d->m_pathChooserDisplay->filePath().toString());
connect(d->m_pathChooserDisplay, &PathChooser::pathChanged,
this, [this](const QString &path) {
setValue(path);
});
}
}