forked from qt-creator/qt-creator
cmake: Show errors for unsupported CMake versions
Show an error icon in the CMake settings, and instead running CMake with unsupported parameters show an error in the Issues pane. Arguably it should not be possible to select an unsupported CMake version in the kit settings at all (neither manually nor automatically when setting up kits), but this is the less intrusive change for now. Fixes: QTCREATORBUG-24553 Change-Id: I32caa2ce93d28cbd9db90e2004d60da93d32c68c Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -204,7 +204,8 @@ public:
|
||||
if (column != 0)
|
||||
return QVariant();
|
||||
|
||||
const bool hasError = !m_pathExists || !m_pathIsFile || !m_pathIsExecutable;
|
||||
const bool hasError = !m_isSupported || !m_pathExists || !m_pathIsFile
|
||||
|| !m_pathIsExecutable;
|
||||
if (hasError)
|
||||
return Utils::Icons::CRITICAL.icon();
|
||||
return QVariant();
|
||||
|
||||
Reference in New Issue
Block a user