forked from qt-creator/qt-creator
QtSupport: Do not pass empty file names to file system engine
Fixes the 'Empty filename passed to function' warnings when using registered self-built Qt without built documentation or examples. Change-Id: I401b56246b1db1ed397c6df11b0714cd90058f48 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -1228,17 +1228,17 @@ void BaseQtVersionPrivate::updateVersionInfo()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const QString qtInstallDocs = q->docsPath().toString();
|
const QString qtInstallDocs = q->docsPath().toString();
|
||||||
if (!qtInstallDocs.isNull()) {
|
if (!qtInstallDocs.isEmpty()) {
|
||||||
if (QFileInfo::exists(qtInstallDocs))
|
if (QFileInfo::exists(qtInstallDocs))
|
||||||
m_hasDocumentation = true;
|
m_hasDocumentation = true;
|
||||||
}
|
}
|
||||||
const QString qtInstallExamples = q->examplesPath().toString();
|
const QString qtInstallExamples = q->examplesPath().toString();
|
||||||
if (!qtInstallExamples.isNull()) {
|
if (!qtInstallExamples.isEmpty()) {
|
||||||
if (QFileInfo::exists(qtInstallExamples))
|
if (QFileInfo::exists(qtInstallExamples))
|
||||||
m_hasExamples = true;
|
m_hasExamples = true;
|
||||||
}
|
}
|
||||||
const QString qtInstallDemos = q->demosPath().toString();
|
const QString qtInstallDemos = q->demosPath().toString();
|
||||||
if (!qtInstallDemos.isNull()) {
|
if (!qtInstallDemos.isEmpty()) {
|
||||||
if (QFileInfo::exists(qtInstallDemos))
|
if (QFileInfo::exists(qtInstallDemos))
|
||||||
m_hasDemos = true;
|
m_hasDemos = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user