]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.cpp
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / src / views / dolphinview.cpp
index ee7ac51d26c270b359d6edf85c8bb1047b517810..933bfda07fd1ec7c5907ad414c932b7b587ec5e8 100644 (file)
@@ -1883,7 +1883,7 @@ void DolphinView::selectNextItem()
             Q_ASSERT_X(false, "DolphinView", "Selecting the next item failed.");
             return;
         }
-        const auto lastSelectedIndex = m_model->index(selectedItems().last());
+        const auto lastSelectedIndex = m_model->index(selectedItems().constLast());
         if (lastSelectedIndex < 0) {
             Q_ASSERT_X(false, "DolphinView", "Selecting the next item failed.");
             return;