summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.cpp8
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
if ( type == "Default Email"){
defaultEmail = textChanged;
- if (cmbDefaultEmail) delete cmbDefaultEmail;
+ if (cmbDefaultEmail){
+ delete cmbDefaultEmail;
+ cmbDefaultEmail = 0l;
+ }
cmbDefaultEmail = new QComboBox(inputWid->parentWidget());
cmbDefaultEmail->setGeometry(inputWid->frameGeometry());
@@ -685,5 +688,6 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE
emails = QStringList::split (",", textChanged );
- populateDefaultEmailCmb();
+ if ( cmbDefaultEmail )
+ populateDefaultEmailCmb();
}