Utils: use native path in FilePath::displayName

Change-Id: Idf82f963cbdee648c53038af478963044b3aa631
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2022-09-23 07:32:02 +02:00
parent 270e162139
commit d83f9d71cc

View File

@@ -770,11 +770,11 @@ QString FilePath::displayName(const QString &args) const
{
QString deviceName;
if (needsDevice()) {
QTC_ASSERT(s_deviceHooks.deviceDisplayName, return path());
QTC_ASSERT(s_deviceHooks.deviceDisplayName, return nativePath());
deviceName = s_deviceHooks.deviceDisplayName(*this);
}
const QString fullPath = path();
const QString fullPath = nativePath();
if (args.isEmpty()) {
if (deviceName.isEmpty())