]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Comment out assertion to fix a crash when filtering in Icons/Compat View
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 22 Apr 2013 19:36:57 +0000 (21:36 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 22 Apr 2013 19:36:57 +0000 (21:36 +0200)
I'm not sure yet if there is a problem somewhere else in the code. For
the time being, I think it's better to replace the assert by a TODO
comment to prevent that users find out the hard way that there is
something that we're not quite sure about.

BUG: 317827
FIXED-IN: 4.10.3

src/kitemviews/kitemlistview.cpp

index 763b7e68fa015c27aa160f906df1297f61316683..a2629c5654dc0511a9c860ee241a42cc1f82132a 100644 (file)
@@ -1147,7 +1147,10 @@ void KItemListView::slotItemsRemoved(const KItemRangeList& itemRanges)
         // Important: Don't read any m_layouter-property inside the for-loop in case if
         // multiple ranges are given! m_layouter accesses m_sizeHintResolver which is
         // updated in each loop-cycle and has only a consistent state after the loop.
-        Q_ASSERT(m_layouter->isDirty());
+        // TODO: This assert can be hit when filtering in Icons and Compact view,
+        // see https://bugs.kde.org/show_bug.cgi?id=317827 comments 2 and 3.
+        // We should try to figure out if the assert is wrong or if there is a bug in the code.
+        //Q_ASSERT(m_layouter->isDirty());
 #endif
         m_endTransactionAnimationHint = NoAnimation;
         endTransaction();