From 2f34671e99d7121e2e8ad18f9ac51a8965d6ec91 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Fri, 29 Jun 2012 10:33:13 +0200 Subject: [PATCH] More direct comparison of Core::Ids Change-Id: I8bd29d64bad6a30927ef73845c5bd8cb5337700c Reviewed-by: Daniel Teske <daniel.teske@nokia.com> --- src/plugins/qt4projectmanager/qt4buildconfiguration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qt4projectmanager/qt4buildconfiguration.cpp b/src/plugins/qt4projectmanager/qt4buildconfiguration.cpp index fad9aef81ca..1f1608f4ccd 100644 --- a/src/plugins/qt4projectmanager/qt4buildconfiguration.cpp +++ b/src/plugins/qt4projectmanager/qt4buildconfiguration.cpp @@ -613,7 +613,7 @@ bool Qt4BuildConfigurationFactory::canCreate(const Target *parent, const Core::I { if (!canHandle(parent)) return false; - return id == QT4_BC_ID; + return id == Core::Id(QT4_BC_ID); } BuildConfiguration *Qt4BuildConfigurationFactory::create(ProjectExplorer::Target *parent, const Core::Id id, const QString &name) @@ -680,7 +680,7 @@ bool Qt4BuildConfigurationFactory::canRestore(const Target *parent, const QVaria { if (!canHandle(parent)) return false; - return ProjectExplorer::idFromMap(map).toString() == QLatin1String(QT4_BC_ID); + return ProjectExplorer::idFromMap(map) == Core::Id(QT4_BC_ID); } BuildConfiguration *Qt4BuildConfigurationFactory::restore(Target *parent, const QVariantMap &map) -- GitLab