summaryrefslogtreecommitdiff
authoreilers <eilers>2002-12-27 13:03:34 (UTC)
committer eilers <eilers>2002-12-27 13:03:34 (UTC)
commit158fd475abbc652613d5eed362dae79f94b17803 (patch) (side-by-side diff)
tree60b38278a274ac97d0ebb1226cfd881418d735bf
parent8ae81608ed194e36236ea68c5fbed54ac6c0275c (diff)
downloadopie-158fd475abbc652613d5eed362dae79f94b17803.zip
opie-158fd475abbc652613d5eed362dae79f94b17803.tar.gz
opie-158fd475abbc652613d5eed362dae79f94b17803.tar.bz2
Fixing nullpointer crash if "emails" selected
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
@@ -669,3 +669,6 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE
defaultEmail = textChanged;
- if (cmbDefaultEmail) delete cmbDefaultEmail;
+ if (cmbDefaultEmail){
+ delete cmbDefaultEmail;
+ cmbDefaultEmail = 0l;
+ }
cmbDefaultEmail = new QComboBox(inputWid->parentWidget());
@@ -686,3 +689,4 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE
- populateDefaultEmailCmb();
+ if ( cmbDefaultEmail )
+ populateDefaultEmailCmb();
}