summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index 7338eeb..f125edb 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -66,8 +66,11 @@ ContactEditor::ContactEditor( const OContact &entry,
: QDialog( parent, name, TRUE, fl ),
m_personalView ( false )
+
{
init();
setEntry( entry );
+
+ cmbDefaultEmail = 0;
}
@@ -632,5 +635,5 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE
if (slChooserNames[index] == "Default Email"){
- delete cmbDefaultEmail;
+ if (cmbDefaultEmail) delete cmbDefaultEmail;
cmbDefaultEmail = new QComboBox(inputWid->parentWidget());
cmbDefaultEmail->setGeometry(inputWid->frameGeometry());