Commit a285e26d authored by Tobias Hunger's avatar Tobias Hunger

Fix broken import of debugger on upgading to profiles

Change-Id: Ie11b8f1efaf4d6b5c6b0f2838bcf7ac36ac434ba
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 313419b5
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment