diff --git a/notificationd/historymodel.cpp b/notificationd/historymodel.cpp index 78a694c..d9b6bc3 100644 --- a/notificationd/historymodel.cpp +++ b/notificationd/historymodel.cpp @@ -83,8 +83,8 @@ QHash HistoryModel::roleNames() const void HistoryModel::add(const Notification ¬ification) { - beginInsertRows(QModelIndex(), m_notifications.size(), m_notifications.size()); - m_notifications.append(std::move(notification)); + beginInsertRows(QModelIndex(), 0, 0); + m_notifications.prepend(std::move(notification)); endInsertRows(); save(); }