Disable updates when loading new items.

This improves performance because setExpanded() doesn't need to do a relayout.
CCIRC: till

svn path=/trunk/KDE/kdepim/; revision=809831
wilder-work
Thomas McGuire 18 years ago
parent 417909b121
commit ff36acb2ad
  1. 2
      folderselectiontreewidget.cpp

@ -130,12 +130,14 @@ void FolderSelectionTreeWidget::reload( bool mustBeReadWrite, bool showOutbox,
mFilter = QString();
setUpdatesEnabled( false );
for (
KMFolderTreeItem * fti = static_cast<KMFolderTreeItem *>( mFolderTree->firstChild() ) ;
fti;
fti = static_cast<KMFolderTreeItem *>( fti->nextSibling() )
)
recursiveReload( fti, 0 );
setUpdatesEnabled( true );
if ( preSelection.isEmpty() )
return; // nothing more to do

Loading…
Cancel
Save