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:
Tobias Hunger
2012-06-25 13:43:51 +02:00
parent ad7874ed87
commit 489f1a839c

View File

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