From b8171301daa127361f9aead1e1c6f9405ffca919 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 2 Nov 2009 19:31:10 +0000 Subject: [PATCH] Clean up svn path=/branches/work/akonadi-ports/kdepim/; revision=1043978 --- kmmainwidget.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/kmmainwidget.cpp b/kmmainwidget.cpp index fcae930e3..d04ec6ded 100644 --- a/kmmainwidget.cpp +++ b/kmmainwidget.cpp @@ -265,6 +265,7 @@ K_GLOBAL_STATIC( KMMainWidget::PtrList, theMainWidgetList ) connect( kmkernel->acctMgr(), SIGNAL( checkedMail( bool, bool, const QMap & ) ), this, SLOT( slotMailChecked( bool, bool, const QMap & ) ) ); + connect( kmkernel->acctMgr(), SIGNAL( accountAdded( KMAccount* ) ), this, SLOT( initializeIMAPActions() ) ); connect( kmkernel->acctMgr(), SIGNAL( accountRemoved( KMAccount* ) ), @@ -1242,16 +1243,6 @@ void KMMainWidget::slotCheckOneAccount( QAction* item ) } else { kDebug() << "- account with name '" << item->data().toString() <<"' not found"; } -#if 0 - KMAccount* t = kmkernel->acctMgr()->findByName( item->data().toString() ); - - if ( t ) { - kmkernel->acctMgr()->singleCheckMail( t ); - } - else { - kDebug() << "- account with name '" << item->data().toString() <<"' not found"; - } -#endif } //-----------------------------------------------------------------------------