Fix emission of firstChanged() on prepend
commitb36ea7879bea892aa0e707e228a968606003d847
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateThu 2 Jun 2016, 09:03 (10 years ago)
parentfb2f4b7
tests/mocks/Unity/Application/MirSurfaceListModel.cpp+1−3
@@ -79,9 +79,7 @@ void MirSurfaceListModel::prependSurface(MirSurface *surface)
7979 connectSurface(surface);
8080 endInsertRows();
8181 Q_EMIT countChanged();
82− if (m_surfaceList.count() == 1) {
83− Q_EMIT firstChanged();
84− }
82+ Q_EMIT firstChanged();
8583}
8684
8785void MirSurfaceListModel::connectSurface(MirSurface *surface)