forked from qt-creator/qt-creator
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:
@@ -187,6 +187,7 @@ void QbsManager::addQtProfileFromKit(const QString &profileName, const ProjectEx
|
|||||||
void QbsManager::addProfileFromKit(const ProjectExplorer::Kit *k)
|
void QbsManager::addProfileFromKit(const ProjectExplorer::Kit *k)
|
||||||
{
|
{
|
||||||
const QString name = QString::fromLatin1("qtc_") + k->fileSystemFriendlyName();
|
const QString name = QString::fromLatin1("qtc_") + k->fileSystemFriendlyName();
|
||||||
|
qbs::Profile(name, settings()).removeProfile();
|
||||||
setProfileForKit(name, k);
|
setProfileForKit(name, k);
|
||||||
addQtProfileFromKit(name, k);
|
addQtProfileFromKit(name, k);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user