summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-09-11 11:14:46 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-09-11 11:14:46 (GMT)
commite43b4c195246ceab3f12fe11260fb91cd1f81dd1 (patch)
tree967d85afbb143f6fa5ff66c89482a88e642ef8ae
parentc036a0c04d9c967ba1ad2566eb731a663cc066d3 (diff)
Extend parent check in objects window.
-rw-r--r--umbrello/models/objectsmodel.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/umbrello/models/objectsmodel.cpp b/umbrello/models/objectsmodel.cpp
index 2897700..2ec20a7 100644
--- a/umbrello/models/objectsmodel.cpp
+++ b/umbrello/models/objectsmodel.cpp
@@ -132,8 +132,12 @@ QVariant ObjectsModel::data(const QModelIndex & index, int role) const
case 5:
if (o->umlPackage()) {
UMLFolder *f = o->umlPackage()->asUMLFolder();
- if (f && f->containedObjects().contains(o))
- return QLatin1String("package +");
+ if (f) {
+ if (f->containedObjects().contains(o))
+ return QLatin1String("package +");
+ else if (f->subordinates().contains(o))
+ return QLatin1String("list +");
+ }
else
return QLatin1String("package -");
} else if (o->umlParent()) {