Backport of trunk commit 843864 (sorry, missed the 4.1.1 tagging deadline):

Set the destination folder for a new account, so that the inbox will appear
if it was previously hidden.

CCBUG:168544

svn path=/branches/KDE/4.1/kdepim/; revision=853907
wilder-work
Jonathan Marten 18 years ago
parent f9390caa87
commit 794adc01e6
  1. 4
      accountmanager.cpp
  2. 3
      kmfoldertree.cpp

@ -260,6 +260,10 @@ void AccountManager::add( KMAccount *account )
{
if ( account ) {
mAcctList.append( account );
KMFolder *folder = account->folder(); // init folder's account list
if ( folder && !folder->hasAccounts() ) account->setFolder( folder, true );
emit accountAdded( account );
account->installTimer();
}

@ -425,6 +425,9 @@ void KMFolderTree::connectSignals()
connect(kmkernel->acctMgr(), SIGNAL(accountRemoved(KMAccount*)),
this, SLOT(slotAccountRemoved(KMAccount*)));
connect(kmkernel->acctMgr(), SIGNAL(accountAdded(KMAccount*)),
this, SLOT(slotUnhideLocalInbox()));
connect(kmkernel->searchFolderMgr(), SIGNAL(folderRemoved(KMFolder*)),
this, SLOT(slotFolderRemoved(KMFolder*)));

Loading…
Cancel
Save