on xenial help sign in
better leaf detection
commitbc931cad044de5d024c52f97d14b54ac74c8f37f authorAlbert Astals <albert.astals@canonical.com> dateWed 18 Jun 2014, 15:31 (12 years ago) parent9087b8a
1 file changed+1−1
qml/Dash/DashDepartments.qml+1−1
qml/Dash/DashDepartments.qml+1−1
@@ -140,7 +140,7 @@ AbstractButton {
140140 }
141141 onAllDepartmentClicked: {
142142 showList = false;
143− if (root.currentDepartment.count == 0) {
143+ if (root.currentDepartment.parentDepartmentId == department.departmentId) {
144144 // For leaves we have to go to the parent too
145145 scope.loadDepartment(root.currentDepartment.parentDepartmentId);
146146 }