[kcm/kwindesktop] Emit rowsChanged signal to fix default state highlighting

Without this, the rowsChanged signal wasn't emitting at startup, so the
binding `highlight: kcm.desktopsModel.rows !== 2` didn't work correctly.

FIXED-IN: 5.24.7 5.25.3 5.26
This commit is contained in:
ivan tkachenko 2022-07-10 15:17:26 +03:00
parent 0d302d5c66
commit 4f419afe30
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -457,6 +457,8 @@ void DesktopsModel::getAllAndConnect(const QDBusMessage &msg)
m_names = m_serverSideNames;
m_rows = m_serverSideRows;
endResetModel();
Q_EMIT rowsChanged();
}
Q_EMIT readyChanged();