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