diff --git a/recipientspicker.cpp b/recipientspicker.cpp index b270ffbf2..2526e3463 100644 --- a/recipientspicker.cpp +++ b/recipientspicker.cpp @@ -345,6 +345,7 @@ RecipientsPicker::RecipientsPicker( QWidget *parent ) #ifndef KDEPIM_NEW_DISTRLISTS , mDistributionListManager( 0 ) #endif + ,mLdapSearchDialog( 0 ) { // KWin::setType( winId(), NET::Dock ); @@ -842,12 +843,12 @@ void RecipientsPicker::resetSearch() void RecipientsPicker::slotSearchLDAP() { - if ( !ldapSearchDialog ) { - ldapSearchDialog = new KPIM::LDAPSearchDialog( this ); - connect( ldapSearchDialog, SIGNAL( addresseesAdded() ), + if ( !mLdapSearchDialog ) { + mLdapSearchDialog = new KPIM::LDAPSearchDialog( this ); + connect( mLdapSearchDialog, SIGNAL( addresseesAdded() ), SLOT(ldapSearchResult() ) ); } - ldapSearchDialog->show(); + mLdapSearchDialog->show(); } @@ -855,7 +856,7 @@ void RecipientsPicker::ldapSearchResult() { kdDebug() << k_funcinfo ; - QStringList emails = QStringList::split(',', ldapSearchDialog->selectedEMails() ); + QStringList emails = QStringList::split(',', mLdapSearchDialog->selectedEMails() ); QStringList::iterator it( emails.begin() ); QStringList::iterator end( emails.end() ); for ( ; it != end; ++it ){ diff --git a/recipientspicker.h b/recipientspicker.h index 9888d0fc7..4f8b82bb8 100644 --- a/recipientspicker.h +++ b/recipientspicker.h @@ -229,10 +229,10 @@ class RecipientsPicker : public QDialog QPushButton *mToButton; QPushButton *mCcButton; QPushButton *mBccButton; - + QPushButton *mSearchLDAPButton; - KPIM::LDAPSearchDialog *ldapSearchDialog; - + KPIM::LDAPSearchDialog *mLdapSearchDialog; + QMap mCollectionMap; RecipientsCollection *mAllRecipients; RecipientsCollection *mDistributionLists;