Commit 2203565c authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Ensure that ProjectPart::id() != " "

Change-Id: Ic928380f711e58008ed66691137c238598a5c26a
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent b4464d8f
......@@ -146,7 +146,10 @@ ProjectPart::Ptr ProjectPart::copy() const
QString ProjectPart::id() const
{
return QDir::fromNativeSeparators(projectFile) + QLatin1Char(' ') + displayName;
QString projectPartId = QDir::fromNativeSeparators(projectFile);
if (!displayName.isEmpty())
projectPartId.append(QLatin1Char(' ') + displayName);
return projectPartId;
}
QByteArray ProjectPart::readProjectConfigFile(const ProjectPart::Ptr &part)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment