Improve condition
commitba99bef62cd26abed11ba121606fa9ea788f3f09
authorAlbert Astals <albert.astals@canonical.com>
dateWed 28 May 2014, 15:12 (12 years ago)
parentc1f85ba
qml/Dash/DashDepartmentsList.qml+1−1
@@ -99,7 +99,7 @@ Item {
9999 id: allButton
100100 anchors.top: backButton.bottom
101101 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))
103103 height: itemHeight
104104
105105 Label {