diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-11-04 08:15:27 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-11-04 08:19:22 +0000 |
commit | e7144e4883d32cb59daae991834c98bf96cf19fb (patch) | |
tree | 6d60090af72671095f251881612fd3510c743348 | |
parent | 3df6a29d4fab106435c408cea92ba89f17b5d2fb (diff) | |
download | qt-creator-e7144e4883d32cb59daae991834c98bf96cf19fb.tar.gz |
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>
-rw-r--r-- | src/plugins/qtsupport/baseqtversion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp index 603a19aff5..13bab8c6f9 100644 --- a/src/plugins/qtsupport/baseqtversion.cpp +++ b/src/plugins/qtsupport/baseqtversion.cpp @@ -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; } |