forked from qt-creator/qt-creator
Utils: use native path in FilePath::displayName
Change-Id: Idf82f963cbdee648c53038af478963044b3aa631 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user