FilePath: Fix absoluteFilePath to behave like absolutePath

Change-Id: Ibb2cba32c40ec9febab5f20c78156481525c8904
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-10-11 15:50:42 +02:00
parent 82b2b2cae9
commit c50891611a
2 changed files with 35 additions and 15 deletions

View File

@@ -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);
}