on xenial help sign in
Improve condition
ba99befAlbert Astals
qml/Dash/DashDepartmentsList.qml+1−1
@@ -99,7 +99,7 @@ Item {
99 id: allButton
99 id: allButton
100 anchors.top: backButton.bottom
100 anchors.top: backButton.bottom
101 width: parent.width
101 width: parent.width
102− visible: department && (!department.isRoot || currentDepartment.parentId == department.departmentId)
102+ visible: department && (!department.isRoot || (!root.currentDepartment.isRoot && root.currentDepartment.parentId == department.departmentId))
103 height: itemHeight
103 height: itemHeight
104
104
105 Label {
105 Label {