|
|
|
|
@ -35,8 +35,8 @@ |
|
|
|
|
|
|
|
|
|
using namespace KMail; |
|
|
|
|
|
|
|
|
|
AccountComboBox::AccountComboBox( bool needsInbox, QWidget* parent, const char* name ) |
|
|
|
|
: QComboBox( parent, name ), mNeedsInbox( needsInbox ) |
|
|
|
|
AccountComboBox::AccountComboBox( QWidget* parent, const char* name ) |
|
|
|
|
: QComboBox( parent, name ) |
|
|
|
|
{ |
|
|
|
|
connect( kmkernel->acctMgr(), SIGNAL( accountAdded( KMAccount* ) ), |
|
|
|
|
this, SLOT( slotRefreshAccounts() ) ); |
|
|
|
|
@ -98,17 +98,7 @@ QValueList<KMAccount *> KMail::AccountComboBox::applicableAccounts() const |
|
|
|
|
for( KMAccount *a = kmkernel->acctMgr()->first(); a; |
|
|
|
|
a = kmkernel->acctMgr()->next() ) { |
|
|
|
|
if ( a && a->type() != "local" ) { //// ## proko2 hack. Need a list of allowed account types as ctor param
|
|
|
|
|
disconnect( a, SIGNAL( finishedCheck( bool, CheckStatus ) ), |
|
|
|
|
this, SLOT( slotRefreshAccounts() ) ); |
|
|
|
|
bool ok = true; |
|
|
|
|
if ( mNeedsInbox && !a->hasInbox() ) { |
|
|
|
|
// no inbox? maybe there'll be one on the next sync
|
|
|
|
|
kdDebug() << k_funcinfo << "No INBOX in " << a->name() << " yet, waiting for sync" << endl; |
|
|
|
|
connect( a, SIGNAL( finishedCheck( bool, CheckStatus ) ), |
|
|
|
|
this, SLOT( slotRefreshAccounts() ) ); |
|
|
|
|
} else { |
|
|
|
|
lst.append( a ); |
|
|
|
|
} |
|
|
|
|
lst.append( a ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return lst; |
|
|
|
|
|