From e7144e4883d32cb59daae991834c98bf96cf19fb Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 4 Nov 2019 08:15:27 +0100 Subject: [PATCH] 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 --- src/plugins/qtsupport/baseqtversion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp index 603a19aff5f..13bab8c6f9c 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; }