Skip to content
Snippets Groups Projects
Commit 3d512064 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Assert removed to mnake GUI functional in release mode

parent d630885a
No related branches found
No related tags found
No related merge requests found
...@@ -438,8 +438,8 @@ SessionItem *SessionItem::addProperty(const QString &name, const QVariant &varia ...@@ -438,8 +438,8 @@ SessionItem *SessionItem::addProperty(const QString &name, const QVariant &varia
const QString property_type = Constants::PropertyType; const QString property_type = Constants::PropertyType;
SessionItem *property = ItemFactory::createItem(property_type); SessionItem *property = ItemFactory::createItem(property_type);
property->setDisplayName(name); property->setDisplayName(name);
Q_ASSERT(registerTag(name, 1, 1, QStringList() << property_type)); registerTag(name, 1, 1, QStringList() << property_type);
Q_ASSERT(insertItem(0, property, name)); insertItem(0, property, name);
property->setValue(variant); property->setValue(variant);
return property; return property;
} }
...@@ -480,8 +480,8 @@ SessionItem *SessionItem::addGroupProperty(const QString &groupName, const QStri ...@@ -480,8 +480,8 @@ SessionItem *SessionItem::addGroupProperty(const QString &groupName, const QStri
Q_ASSERT(groupItem); Q_ASSERT(groupItem);
groupItem->setGroup(group_property); groupItem->setGroup(group_property);
groupItem->setDisplayName(groupName); groupItem->setDisplayName(groupName);
Q_ASSERT(registerTag(groupName, 1, 1, QStringList() << Constants::GroupItemType)); registerTag(groupName, 1, 1, QStringList() << Constants::GroupItemType);
Q_ASSERT(insertItem(0, groupItem, groupName)); insertItem(0, groupItem, groupName);
return groupItem; return groupItem;
} }
......
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