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:
Christian Stenger
2019-11-04 08:15:27 +01:00
parent 3df6a29d4f
commit e7144e4883

View File

@@ -1228,17 +1228,17 @@ void BaseQtVersionPrivate::updateVersionInfo()
}
}
const QString qtInstallDocs = q->docsPath().toString();
if (!qtInstallDocs.isNull()) {
if (!qtInstallDocs.isEmpty()) {
if (QFileInfo::exists(qtInstallDocs))
m_hasDocumentation = true;
}
const QString qtInstallExamples = q->examplesPath().toString();
if (!qtInstallExamples.isNull()) {
if (!qtInstallExamples.isEmpty()) {
if (QFileInfo::exists(qtInstallExamples))
m_hasExamples = true;
}
const QString qtInstallDemos = q->demosPath().toString();
if (!qtInstallDemos.isNull()) {
if (!qtInstallDemos.isEmpty()) {
if (QFileInfo::exists(qtInstallDemos))
m_hasDemos = true;
}