-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 1b83308..b68d88c 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -668,5 +668,8 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE | |||
668 | if ( type == "Default Email"){ | 668 | if ( type == "Default Email"){ |
669 | defaultEmail = textChanged; | 669 | defaultEmail = textChanged; |
670 | if (cmbDefaultEmail) delete cmbDefaultEmail; | 670 | if (cmbDefaultEmail){ |
671 | delete cmbDefaultEmail; | ||
672 | cmbDefaultEmail = 0l; | ||
673 | } | ||
671 | cmbDefaultEmail = new QComboBox(inputWid->parentWidget()); | 674 | cmbDefaultEmail = new QComboBox(inputWid->parentWidget()); |
672 | cmbDefaultEmail->setGeometry(inputWid->frameGeometry()); | 675 | cmbDefaultEmail->setGeometry(inputWid->frameGeometry()); |
@@ -685,5 +688,6 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE | |||
685 | emails = QStringList::split (",", textChanged ); | 688 | emails = QStringList::split (",", textChanged ); |
686 | 689 | ||
687 | populateDefaultEmailCmb(); | 690 | if ( cmbDefaultEmail ) |
691 | populateDefaultEmailCmb(); | ||
688 | } | 692 | } |
689 | 693 | ||