SVN commit 1208928 by vkrause: Ensure the selected collection is visible, with e.g. favorites it was possible to select collapsed or scrolled out collections. M +6 -0 entitytreeview.cpp --- trunk/KDE/kdepimlibs/akonadi/entitytreeview.cpp #1208927:1208928 @@ -124,7 +124,13 @@ mParent->model()->fetchMore( index.sibling( row, column ) ); } } + + if ( selected.size() == 1 ) { + const QItemSelectionRange &range = selected.first(); + if ( range.topLeft().row() == range.bottomRight().row() ) + mParent->scrollTo( range.topLeft(), QTreeView::EnsureVisible ); } +} void EntityTreeView::Private::itemClicked( const QModelIndex &index ) {