aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt31/files/patch-qlistview.cpp
blob: 73882d3e97469f7c8d01130b41bd1cb6e9fd46b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/widgets/qlistview.cpp.orig  Mon Feb 24 09:30:39 2003
+++ src/widgets/qlistview.cpp   Mon May 12 19:42:07 2003
@@ -6215,7 +6215,7 @@
 
 void QListView::ensureItemVisible( const QListViewItem * i )
 {
-    if ( !i )
+    if ( !i || !i->isVisible() )
    return;
 
     QListViewItem *parent = i->parent();