Less ugly uglyness
commit5716fa958e4ed24f38824fa49ec3f7292640139d
authorAlbert Astals <albert.astals@canonical.com>
dateWed 2 Oct 2013, 12:00 (13 years ago)
parent17bf1b9
Dash/GenericScopeView.qml+1−5
@@ -105,11 +105,7 @@ ScopeView {
105105
106106 Component.onDestruction: {
107107 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
108− if (results) {
109− enableHeightBehavior = (results.firstModel.count + results.secondModel.count == 0)
110− } else {
111− enableHeightBehavior = true
112− }
108+ enableHeightBehavior = (item.firstModel.count + item.secondModel.count == 0)
113109 }
114110 }
115111