summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-01-29 14:56:23 +0100
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-02-03 15:29:07 +0000
commit99c8992aed00f3ed3c40ba4899a3c056bd666cf6 (patch)
tree044ff9a98fc5e75bb4ba0f7618bb54b22c0787d7
parent75a943ef57da0179e742c7d396fb28f909e1add1 (diff)
downloadqt-creator-99c8992aed00f3ed3c40ba4899a3c056bd666cf6.tar.gz
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>
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp b/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp
index 83f50538ab..3c6c61f4c5 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp
+++ b/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp
@@ -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);