forked from qt-creator/qt-creator
PathChooser: On changing environment emit changed() if the path changed.
Reviewed-By: hunger
This commit is contained in:
@@ -188,7 +188,10 @@ void PathChooser::setBaseDirectory(const QString &directory)
|
|||||||
|
|
||||||
void PathChooser::setEnvironment(const Utils::Environment &env)
|
void PathChooser::setEnvironment(const Utils::Environment &env)
|
||||||
{
|
{
|
||||||
|
QString oldExpand = path();
|
||||||
m_d->m_environment = env;
|
m_d->m_environment = env;
|
||||||
|
if (path() != oldExpand)
|
||||||
|
emit changed(rawPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user