forked from qt-creator/qt-creator
Fix broken import of debugger on upgading to profiles
Change-Id: Ie11b8f1efaf4d6b5c6b0f2838bcf7ac36ac434ba Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -2467,7 +2467,11 @@ QVariantMap Version11Handler::update(Project *project, const QVariantMap &map)
|
||||
|
||||
// Debugger + mkspec
|
||||
if (m_toolChainExtras.contains(origTcId)) {
|
||||
tmp->setValue(Core::Id("Debugger.Information"), m_toolChainExtras.value(origTcId).m_debugger);
|
||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||
QString debugger = m_toolChainExtras.value(origTcId).m_debugger;
|
||||
if (!debugger.isEmpty() && !QFileInfo(debugger).isAbsolute())
|
||||
debugger = env.searchInPath(debugger);
|
||||
tmp->setValue(Core::Id("Debugger.Information"), debugger);
|
||||
tmp->setValue(Core::Id("QtPM4.mkSpecInformation"), m_toolChainExtras.value(origTcId).m_mkspec);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user