forked from qt-creator/qt-creator
FilePath: Fix absoluteFilePath to behave like absolutePath
Change-Id: Ibb2cba32c40ec9febab5f20c78156481525c8904 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -785,9 +785,9 @@ FilePath FilePath::absolutePath() const
|
||||
FilePath FilePath::absoluteFilePath() const
|
||||
{
|
||||
if (isAbsolutePath())
|
||||
return *this;
|
||||
return cleanPath();
|
||||
if (!needsDevice() && isEmpty())
|
||||
return *this;
|
||||
return cleanPath();
|
||||
|
||||
return FilePath::currentWorkingPath().resolvePath(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user