summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (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
@@ -67,2 +67,3 @@ ContactEditor::ContactEditor( const OContact &entry,
m_personalView ( false )
+
{
@@ -71,2 +72,4 @@ ContactEditor::ContactEditor( const OContact &entry,
setEntry( entry );
+
+ cmbDefaultEmail = 0;
}
@@ -633,3 +636,3 @@ 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());