forked from qt-creator/qt-creator
DAP: Fix grey out cmake debug option
Change-Id: Ic4f593c87b874835f923ca5d171f5c78c3fee191 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -173,8 +173,6 @@ CMakeManager::CMakeManager()
|
|||||||
});
|
});
|
||||||
|
|
||||||
connect(ProjectManager::instance(), &ProjectManager::startupProjectChanged, this, [this] {
|
connect(ProjectManager::instance(), &ProjectManager::startupProjectChanged, this, [this] {
|
||||||
updateCmakeActions(ProjectTree::currentNode());
|
|
||||||
|
|
||||||
auto cmakeBuildSystem = qobject_cast<CMakeBuildSystem *>(
|
auto cmakeBuildSystem = qobject_cast<CMakeBuildSystem *>(
|
||||||
ProjectManager::startupBuildSystem());
|
ProjectManager::startupBuildSystem());
|
||||||
if (cmakeBuildSystem) {
|
if (cmakeBuildSystem) {
|
||||||
@@ -183,6 +181,7 @@ CMakeManager::CMakeManager()
|
|||||||
CMakeTool::Version version = tool ? tool->version() : CMakeTool::Version();
|
CMakeTool::Version version = tool ? tool->version() : CMakeTool::Version();
|
||||||
m_canDebugCMake = (version.major == 3 && version.minor >= 27) || version.major > 3;
|
m_canDebugCMake = (version.major == 3 && version.minor >= 27) || version.major > 3;
|
||||||
}
|
}
|
||||||
|
updateCmakeActions(ProjectTree::currentNode());
|
||||||
});
|
});
|
||||||
connect(BuildManager::instance(), &BuildManager::buildStateChanged, this, [this] {
|
connect(BuildManager::instance(), &BuildManager::buildStateChanged, this, [this] {
|
||||||
updateCmakeActions(ProjectTree::currentNode());
|
updateCmakeActions(ProjectTree::currentNode());
|
||||||
|
Reference in New Issue
Block a user