forked from qt-creator/qt-creator
Utils: Fix FilePathAspect::expandedValue
It should use the macro expander if there is one. Change-Id: I8fb7760f23305f4b243e784d38d44d9bef4c0065 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1416,7 +1416,10 @@ FilePath FilePathAspect::operator()() const
|
||||
|
||||
FilePath FilePathAspect::expandedValue() const
|
||||
{
|
||||
return FilePath::fromUserInput(TypedAspect::value());
|
||||
const auto value = TypedAspect::value();
|
||||
if (!value.isEmpty() && d->m_expanderProvider)
|
||||
return FilePath::fromUserInput(d->m_expanderProvider()->expand(value));
|
||||
return FilePath::fromUserInput(value);
|
||||
}
|
||||
|
||||
QString FilePathAspect::value() const
|
||||
|
Reference in New Issue
Block a user