From 129c5a070c70c4f304c19c2b9edaad1f27a1baca Mon Sep 17 00:00:00 2001 From: Carsten Burghardt Date: Thu, 3 Jan 2002 10:28:18 +0000 Subject: [PATCH] Call slotFolderExpanded on startup to make sure the folder-settings are fully read. Additionally syncs the foldertree with the server. svn path=/trunk/kdenetwork/kmail/; revision=129654 --- kmfoldertree.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kmfoldertree.cpp b/kmfoldertree.cpp index 0117f21f5..73595b228 100644 --- a/kmfoldertree.cpp +++ b/kmfoldertree.cpp @@ -450,6 +450,9 @@ void KMFolderTree::addDirectory( KMFolderDir *fdir, QListViewItem* parent ) if (fti->folder && fti->folder->protocol() == "imap" && parent && !parent->parent()) fti->setExpandable( TRUE ); fti->setOpen( readIsListViewItemOpen(fti) ); + // make sure that the folder-settings are correctly read on startup by calling listDirectory + if (readIsListViewItemOpen(fti) && fti->folder->protocol() == "imap") + slotFolderExpanded(fti); } }