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: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Christian Kandeler
2015-01-29 14:56:23 +01:00
parent 75a943ef57
commit 99c8992aed

View File

@@ -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);