From 197d4a155f3f452c27d38e545482d768761a7c2c Mon Sep 17 00:00:00 2001 From: Michal Klocek <michal.klocek@digia.com> Date: Wed, 31 Jul 2013 10:42:11 +0200 Subject: [PATCH] Minor. Fixing storing of gdb binary paths in profile.xml * keeps paths in form of C:/.../.../... on windows * instead of C:\..\..\..\ Change-Id: I5d645ab136c92fbdd5f9750265213ba974fac38a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> --- src/plugins/debugger/debuggerkitinformation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/debuggerkitinformation.cpp b/src/plugins/debugger/debuggerkitinformation.cpp index 76fba76d83b..d74f69161c8 100644 --- a/src/plugins/debugger/debuggerkitinformation.cpp +++ b/src/plugins/debugger/debuggerkitinformation.cpp @@ -325,14 +325,14 @@ DebuggerKitInformation::DebuggerItem DebuggerKitInformation::variantToItem(const break; } } - result.binary = Utils::FileName::fromString(binary); + result.binary = Utils::FileName::fromUserInput(binary); return result; } QVariant DebuggerKitInformation::itemToVariant(const DebuggerItem &i) { QVariantMap vmap; - vmap.insert(QLatin1String(binaryKeyC), QVariant(i.binary.toUserOutput())); + vmap.insert(QLatin1String(binaryKeyC), QVariant(i.binary.toString())); vmap.insert(QLatin1String(engineTypeKeyC), QVariant(int(i.engineType))); return QVariant(vmap); } -- GitLab