on xenial help sign in
Fix emission of firstChanged() on prepend
b36ea78Daniel d'Andrada
tests/mocks/Unity/Application/MirSurfaceListModel.cpp+1−3
@@ -79,9 +79,7 @@ void MirSurfaceListModel::prependSurface(MirSurface *surface)
79 connectSurface(surface);
79 connectSurface(surface);
80 endInsertRows();
80 endInsertRows();
81 Q_EMIT countChanged();
81 Q_EMIT countChanged();
82− if (m_surfaceList.count() == 1) {
83− Q_EMIT firstChanged();
82+ Q_EMIT firstChanged();
84− }
85}
83}
86
84
87void MirSurfaceListModel::connectSurface(MirSurface *surface)
85void MirSurfaceListModel::connectSurface(MirSurface *surface)