From 489f1a839c15fb8d2595e1e8bba4c1ff4b27e099 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 25 Jun 2012 13:43:51 +0200 Subject: [PATCH] Allow duplicate profiles Allow duplicate targets (or profiles) to exist. Task-number: QTCREATORBUG-7574 Change-Id: Id0d658f8f2954477e3b7834f6142295aaff5feaa Reviewed-by: Daniel Teske --- src/plugins/projectexplorer/profilemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/profilemanager.cpp b/src/plugins/projectexplorer/profilemanager.cpp index add233b20f7..17f28e79488 100644 --- a/src/plugins/projectexplorer/profilemanager.cpp +++ b/src/plugins/projectexplorer/profilemanager.cpp @@ -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; }