forked from qt-creator/qt-creator
Allow duplicate profiles
Allow duplicate targets (or profiles) to exist. Task-number: QTCREATORBUG-7574 Change-Id: Id0d658f8f2954477e3b7834f6142295aaff5feaa Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -386,7 +386,7 @@ bool ProfileManager::registerProfile(ProjectExplorer::Profile *p)
|
||||
if (!p)
|
||||
return true;
|
||||
foreach (Profile *current, profiles()) {
|
||||
if (p == current || *p == *current)
|
||||
if (p == current)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user