on xenial help sign in
fix issues
commit33a03fbed18699feda7a7bf38f4174e0bef36c05 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 17 May 2016, 16:56 (10 years ago) parent0c7e719
2 files changed+3−3
tests/mocks/Unity/Application/MirSurfaceListModel.cpp+1−1 tests/qmltests/Stages/ApplicationCheckBox.qml+2−2
tests/mocks/Unity/Application/MirSurfaceListModel.cpp+1−1
@@ -86,7 +86,7 @@ void MirSurfaceListModel::removeSurface(MirSurface *surface)
8686 m_surfaceList.removeAt(i);
8787 endRemoveRows();
8888 Q_EMIT countChanged();
89− if (m_surfaceList.count() == 0) {
89+ if (m_surfaceList.count() == 0 || i == 0) {
9090 Q_EMIT firstChanged();
9191 }
9292 }
tests/qmltests/Stages/ApplicationCheckBox.qml+2−2
@@ -136,7 +136,7 @@ Column {
136136
137137 // Prompts controls row
138138 RowLayout {
139− anchors.left: parent.left
139+ anchors.left: root.left
140140 anchors.leftMargin: units.gu(2)
141141 visible: root.checked === true && d.application !== null && root.enabled
142142 spacing: units.gu(1)
@@ -166,7 +166,7 @@ Column {
166166 Repeater {
167167 model: d.application ? d.application.surfaceList : null
168168 RowLayout {
169− anchors.left: parent.left
169+ anchors.left: root.left
170170 anchors.leftMargin: units.gu(2)
171171 spacing: units.gu(1)
172172 Label {