Преглед изворни кода

Merge pull request #5172 from nextcloud/bugfix/fix-activitylist-warnings

Fix ActivityList delegate warnings
Claudio Cambra пре 3 година
родитељ
комит
d5af4bc7c6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/gui/tray/ActivityList.qml

+ 2 - 2
src/gui/tray/ActivityList.qml

@@ -58,8 +58,8 @@ ScrollView {
         }
 
         delegate: ActivityItem {
-            anchors.left: parent.left
-            anchors.right: parent.right
+            anchors.left: if (parent) parent.left
+            anchors.right: if (parent) parent.right
             anchors.leftMargin: controlRoot.delegateHorizontalPadding
             anchors.rightMargin: controlRoot.delegateHorizontalPadding