forked from qt-creator/qt-creator
ToolChainKitInformation: Make use of ToolChainManager::isLoaded()
Warn when trying to access values not yet initialized, and avoid doing so. Also invalidate toolchains in kits properly. Change-Id: I3a98a2ca89ce43d9982d37bdee451c5122c788b2 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <projectexplorer/abi.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
#include <projectexplorer/toolchainmanager.h>
|
||||
|
||||
#include <utils/environment.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -201,6 +202,7 @@ DebuggerKitInformation::DebuggerItem DebuggerKitInformation::autoDetectItem(cons
|
||||
|
||||
void DebuggerKitInformation::setup(Kit *k)
|
||||
{
|
||||
QTC_ASSERT(ToolChainManager::instance()->isLoaded(), return);
|
||||
setDebuggerItem(k, autoDetectItem(k));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user