Fix notifications order

pull/15/head
reionwong 4 years ago
parent a6c946da2f
commit 5ed5670ab9

@ -83,8 +83,8 @@ QHash<int, QByteArray> HistoryModel::roleNames() const
void HistoryModel::add(const Notification &notification) void HistoryModel::add(const Notification &notification)
{ {
beginInsertRows(QModelIndex(), m_notifications.size(), m_notifications.size()); beginInsertRows(QModelIndex(), 0, 0);
m_notifications.append(std::move(notification)); m_notifications.prepend(std::move(notification));
endInsertRows(); endInsertRows();
save(); save();
} }

Loading…
Cancel
Save