summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show 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
@@ -65,10 +65,13 @@ ContactEditor::ContactEditor( const OContact &entry,
WFlags fl )
: QDialog( parent, name, TRUE, fl ),
m_personalView ( false )
+
{
init();
setEntry( entry );
+
+ cmbDefaultEmail = 0;
}
ContactEditor::~ContactEditor() {
@@ -631,7 +634,7 @@ void ContactEditor::defaultEmailChanged(int i){
void ContactEditor::chooserChange( const QString &textChanged, int index, QLineEdit *inputWid ) {
if (slChooserNames[index] == "Default Email"){
- delete cmbDefaultEmail;
+ if (cmbDefaultEmail) delete cmbDefaultEmail;
cmbDefaultEmail = new QComboBox(inputWid->parentWidget());
cmbDefaultEmail->setGeometry(inputWid->frameGeometry());
cmbDefaultEmail->insertStringList(ent.emailList());