on xenial help sign in
improve comment
commita335a47687791b95dcb1bbc4852b6de7b749526d authorAlbert Astals <albert.astals@canonical.com> dateThu 19 Dec 2013, 16:00 (13 years ago) parent12239e0
1 file changed+3−1
plugins/DashViews/verticaljournal.cpp+3−1
plugins/DashViews/verticaljournal.cpp+3−1
@@ -516,7 +516,9 @@ void VerticalJournal::onModelUpdated(const QQmlChangeSet &changeSet, bool reset)
516516 for (int i = remove.count - 1; i >= 0; --i) {
517517 const int indexToRemove = remove.index + i;
518518 // Since we only support removing from the end, indexToRemove
519− // must refer to the last item of one of the columns.
519+ // must refer to the last item of one of the columns or
520+ // be bigger than them (because it's not in the viewport and
521+ // thus we have not created a delegate for it)
520522 bool found = false;
521523 int lastCreatedIndex = INT_MIN;
522524 for (int i = 0; !found && i < m_columnVisibleItems.count(); ++i) {