~mir-team/qtmir/trunk

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/mirsurfacelistmodel.cpp

  • Committer: Bileto Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-06-14 08:36:00 UTC
  • mfrom: (502.2.1 fixFirstChangedOnPrepend)
  • Revision ID: ci-train-bot@canonical.com-20160614083600-bnhqbf255izjb1qg
MirSurfaceListModel: prepending a surface always causes firstChanged() emission

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    Q_EMIT countChanged(m_surfaceList.count());
72
72
    if (count() == 1) {
73
73
        Q_EMIT emptyChanged();
74
 
        Q_EMIT firstChanged();
75
74
    }
 
75
    Q_EMIT firstChanged();
76
76
}
77
77
 
78
78
void MirSurfaceListModel::connectSurface(MirSurfaceInterface *surface)