From f99e46c14865a984a365604827a2f96c6048aef4 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 18 Nov 2020 16:58:53 +0100 Subject: [PATCH] cmake: Fix version information about unsupported cmake tool When registering a CMake version without fileapi support and setting that in a kit, the kit shows a warning about unsupported version. It didn't show the version of the registered CMake though. Make CMake tools without fileapi return their version number. Change-Id: I388d3e0a17ff4145238c5c90109522665a6f6fac Reviewed-by: Cristian Adam --- src/plugins/cmakeprojectmanager/cmaketool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmaketool.cpp b/src/plugins/cmakeprojectmanager/cmaketool.cpp index ae58295df58..678acdf554f 100644 --- a/src/plugins/cmakeprojectmanager/cmaketool.cpp +++ b/src/plugins/cmakeprojectmanager/cmaketool.cpp @@ -318,7 +318,7 @@ QVector> CMakeTool::supportedFileApiObjects() const CMakeTool::Version CMakeTool::version() const { - return isValid() ? m_introspection->m_version : CMakeTool::Version(); + return m_introspection ? m_introspection->m_version : CMakeTool::Version(); } bool CMakeTool::isAutoDetected() const