Coding style, don't crash on search, initialize the new member.

svn path=/branches/kdepim/enterprise/kdepim/; revision=817604
wilder-work
Till Adam 18 years ago
parent eb98d46c36
commit 6f1a74b1b6
  1. 11
      recipientspicker.cpp
  2. 6
      recipientspicker.h

@ -318,6 +318,7 @@ RecipientsPicker::RecipientsPicker( QWidget *parent )
#ifndef KDEPIM_NEW_DISTRLISTS
, mDistributionListManager( 0 )
#endif
,mLdapSearchDialog( 0 )
{
// KWin::setType( winId(), NET::Dock );
@ -783,12 +784,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();
}
@ -796,7 +797,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 ){

@ -207,10 +207,10 @@ class RecipientsPicker : public QDialog
QPushButton *mToButton;
QPushButton *mCcButton;
QPushButton *mBccButton;
QPushButton *mSearchLDAPButton;
KPIM::LDAPSearchDialog *ldapSearchDialog;
KPIM::LDAPSearchDialog *mLdapSearchDialog;
QMap<int,RecipientsCollection *> mCollectionMap;
RecipientsCollection *mAllRecipients;
RecipientsCollection *mSelectedRecipients;

Loading…
Cancel
Save