From kde-commits Fri Apr 25 08:42:49 2003 From: Scott Wheeler Date: Fri, 25 Apr 2003 08:42:49 +0000 To: kde-commits Subject: qt-copy/src/widgets X-MARC-Message: https://marc.info/?l=kde-commits&m=105126023420108 CVS commit by wheeler: Don't try to show the item specified in QListView::ensureItemVisible() if it has been hidden. (Yes, I know the semantics are strange here.) Already accepted by the Trolls. M +1 -1 qlistview.cpp 1.57 --- qt-copy/src/widgets/qlistview.cpp #1.56:1.57 @@ -6216,5 +6216,5 @@ bool QListView::rootIsDecorated() const void QListView::ensureItemVisible( const QListViewItem * i ) { - if ( !i ) + if ( !i || !i->isVisible() ) return;