diff options
author | Viktor Verebelyi <vviktor2@gmail.com> | 2020-10-08 23:29:52 +0100 |
---|---|---|
committer | Viktor Verebelyi <vviktor2@gmail.com> | 2020-10-08 23:29:52 +0100 |
commit | db081ccc9dd5c884ac2c4232ec35b7f1b6dfa9b2 (patch) | |
tree | b6fabf9dd5ad67f523d1ea5bb20929284ca6efe5 | |
parent | 5bd3209018a4f548260c1f4d58038bb96cf74d90 (diff) | |
download | navit-db081ccc9dd5c884ac2c4232ec35b7f1b6dfa9b2.tar.gz |
fix:qt5_gui:Levy Fix recents models ordering
-rw-r--r-- | navit/gui/qt5_qml/navitrecentsmodel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/navit/gui/qt5_qml/navitrecentsmodel.cpp b/navit/gui/qt5_qml/navitrecentsmodel.cpp index 00a9046da..3c68e17e9 100644 --- a/navit/gui/qt5_qml/navitrecentsmodel.cpp +++ b/navit/gui/qt5_qml/navitrecentsmodel.cpp @@ -89,10 +89,9 @@ void NavitRecentsModel::update() { QVariantMap recentItem; recentItem.insert("coords",coords); recentItem.insert("label",label_full); -// qDebug() << label_full; - beginInsertRows(QModelIndex(), rowCount(), rowCount()); - m_recents.append(recentItem); + beginInsertRows(QModelIndex(), 0, 0); + m_recents.prepend(recentItem); endInsertRows(); } } |