on xenial help sign in
fix issues
33a03fbDaniel d'Andrada
tests/mocks/Unity/Application/MirSurfaceListModel.cpp+1−1
@@ -86,7 +86,7 @@ void MirSurfaceListModel::removeSurface(MirSurface *surface)
86 m_surfaceList.removeAt(i);
86 m_surfaceList.removeAt(i);
87 endRemoveRows();
87 endRemoveRows();
88 Q_EMIT countChanged();
88 Q_EMIT countChanged();
89− if (m_surfaceList.count() == 0) {
89+ if (m_surfaceList.count() == 0 || i == 0) {
90 Q_EMIT firstChanged();
90 Q_EMIT firstChanged();
91 }
91 }
92 }
92 }
tests/qmltests/Stages/ApplicationCheckBox.qml+2−2
@@ -136,7 +136,7 @@ Column {
136
136
137 // Prompts controls row
137 // Prompts controls row
138 RowLayout {
138 RowLayout {
139− anchors.left: parent.left
139+ anchors.left: root.left
140 anchors.leftMargin: units.gu(2)
140 anchors.leftMargin: units.gu(2)
141 visible: root.checked === true && d.application !== null && root.enabled
141 visible: root.checked === true && d.application !== null && root.enabled
142 spacing: units.gu(1)
142 spacing: units.gu(1)
@@ -166,7 +166,7 @@ Column {
166 Repeater {
166 Repeater {
167 model: d.application ? d.application.surfaceList : null
167 model: d.application ? d.application.surfaceList : null
168 RowLayout {
168 RowLayout {
169− anchors.left: parent.left
169+ anchors.left: root.left
170 anchors.leftMargin: units.gu(2)
170 anchors.leftMargin: units.gu(2)
171 spacing: units.gu(1)
171 spacing: units.gu(1)
172 Label {
172 Label {