Commit 99c8992a authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QbsPM: Remove existing qbs profile before recreating from kit.

Otherwise, "remove" operations on a kit such as clearing out the sysroot
or removing the Qt version will leave the old entries in the profile.

Change-Id: I70be926472c8d290b80e3479fc49286113f71380
Reviewed-by: default avatarJoerg Bornemann <>
parent 75a943ef
......@@ -187,6 +187,7 @@ void QbsManager::addQtProfileFromKit(const QString &profileName, const ProjectEx
void QbsManager::addProfileFromKit(const ProjectExplorer::Kit *k)
const QString name = QString::fromLatin1("qtc_") + k->fileSystemFriendlyName();
qbs::Profile(name, settings()).removeProfile();
setProfileForKit(name, k);
addQtProfileFromKit(name, k);
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