Commit ccbca148 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modify collection when display name changed

parent 67dea4d3
......@@ -35,6 +35,7 @@
#include <QDir>
#include <QDebug>
#include <QEventLoopLocker>
#include <CollectionModifyJob>
Q_DECLARE_METATYPE(QEventLoopLocker *)
......@@ -307,7 +308,10 @@ public:
c.setRights(rights);
}
EntityDisplayAttribute *attr = c.attribute<EntityDisplayAttribute>(Collection::AddIfMissing);
attr->setDisplayName(name());
if (name() != attr->displayName()) {
attr->setDisplayName(name());
new CollectionModifyJob(c);
}
attr->setIconName(mCollectionIcon);
return c;
}
......
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