forked from qt-creator/qt-creator
CMakePM: Fix order of initialization
CMakeToolManager instance must be created first to avoid connects to a nullptr. Change-Id: If8738a26d58c80ffc9a63193240895f1bc9a87ae Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -57,7 +57,7 @@ static CMakeToolManagerPrivate *d = nullptr;
|
||||
|
||||
CMakeToolManager *CMakeToolManager::m_instance = nullptr;
|
||||
|
||||
CMakeToolManager::CMakeToolManager(QObject *parent) : QObject(parent)
|
||||
CMakeToolManager::CMakeToolManager()
|
||||
{
|
||||
QTC_ASSERT(!m_instance, return);
|
||||
m_instance = this;
|
||||
|
||||
Reference in New Issue
Block a user