summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-04-14 08:02:42 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-04-14 12:56:39 (GMT)
commit91aeceb7132f4afae0996443a162a5783d8f17aa (patch)
treec1559e76fdcc30f132cf9283b4ebaa492d24af70 /src/gui/itemviews
parente1a9014cc92091e8371f9a888ff94c694f562df0 (diff)
downloadQt-91aeceb7132f4afae0996443a162a5783d8f17aa.zip
Qt-91aeceb7132f4afae0996443a162a5783d8f17aa.tar.gz
Qt-91aeceb7132f4afae0996443a162a5783d8f17aa.tar.bz2
Fix crash in QTreeView
Discovered in Kopete trunk BT: yes Reviewed-by: Thierry
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qtreeview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp
index 0117db2..62c1277 100644
--- a/src/gui/itemviews/qtreeview.cpp
+++ b/src/gui/itemviews/qtreeview.cpp
@@ -2019,6 +2019,7 @@ int QTreeView::verticalOffset() const
// If we are scrolling per item and have non-uniform row heights,
// finding the vertical offset in pixels is going to be relatively slow.
// ### find a faster way to do this
+ d->executePostedLayout();
int offset = 0;
for (int i = 0; i < d->viewItems.count(); ++i) {
if (i == verticalScrollBar()->value())