Blame qt-everywhere-opensource-src-4.8.0-tp-qtreeview-kpackagekit-crash.patch

Jaroslav Reznik 34e2c2
diff -up qt-everywhere-opensource-src-4.8.0-tp/src/gui/itemviews/qtreeview.cpp.qtreeview-kpackagekit-crash qt-everywhere-opensource-src-4.8.0-tp/src/gui/itemviews/qtreeview.cpp
Jaroslav Reznik 34e2c2
--- qt-everywhere-opensource-src-4.8.0-tp/src/gui/itemviews/qtreeview.cpp.qtreeview-kpackagekit-crash	2011-05-23 12:26:21.000000000 +0200
Jaroslav Reznik 34e2c2
+++ qt-everywhere-opensource-src-4.8.0-tp/src/gui/itemviews/qtreeview.cpp	2011-05-25 13:24:33.137315194 +0200
Jaroslav Reznik 34e2c2
@@ -3215,7 +3215,7 @@ int QTreeViewPrivate::itemHeight(int ite
Jaroslav Reznik 34e2c2
         return defaultItemHeight;
Jaroslav Reznik 34e2c2
     if (viewItems.isEmpty())
Jaroslav Reznik 34e2c2
         return 0;
Jaroslav Reznik 34e2c2
-    const QModelIndex &index = viewItems.at(item).index;
Jaroslav Reznik 34e2c2
+    QModelIndex index = viewItems.at(item).index;
Jaroslav Reznik 34e2c2
     if (!index.isValid())
Jaroslav Reznik 34e2c2
         return 0;
Jaroslav Reznik 34e2c2
     int height = viewItems.at(item).height;