Skip to content
Snippets Groups Projects
Commit cc52cc71 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

don't copy constant

parent 96354860
No related branches found
No related tags found
No related merge requests found
......@@ -289,10 +289,9 @@ SessionItem* SessionItem::addProperty(const QString& name, const QVariant& varia
throw GUIHelpers::Error(
"ParameterizedItem::registerProperty() -> Error. Already existing property " + name);
const QString property_type = Constants::PropertyType;
SessionItem* property = ItemFactory::CreateItem(property_type);
SessionItem* property = ItemFactory::CreateItem(Constants::PropertyType);
property->setDisplayName(name);
registerTag(name, 1, 1, QStringList() << property_type);
registerTag(name, 1, 1, QStringList() << Constants::PropertyType);
if (!insertItem(0, property, name))
throw GUIHelpers::Error("SessionItem::addProperty -> Error. Can't insert item");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment