summaryrefslogtreecommitdiff
authoreilers <eilers>2002-12-27 13:03:34 (UTC)
committer eilers <eilers>2002-12-27 13:03:34 (UTC)
commit158fd475abbc652613d5eed362dae79f94b17803 (patch) (unidiff)
tree60b38278a274ac97d0ebb1226cfd881418d735bf
parent8ae81608ed194e36236ea68c5fbed54ac6c0275c (diff)
downloadopie-158fd475abbc652613d5eed362dae79f94b17803.zip
opie-158fd475abbc652613d5eed362dae79f94b17803.tar.gz
opie-158fd475abbc652613d5eed362dae79f94b17803.tar.bz2
Fixing nullpointer crash if "emails" selected
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.cpp6
1 files changed, 5 insertions, 1 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
@@ -667,7 +667,10 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE
667 qDebug("ContactEditor::chooserChange( type=>%s<, textChanged=>%s< index=%i, widgetPos=%i",type.latin1(),textChanged.latin1(), index, widgetPos ); 667 qDebug("ContactEditor::chooserChange( type=>%s<, textChanged=>%s< index=%i, widgetPos=%i",type.latin1(),textChanged.latin1(), index, widgetPos );
668 if ( type == "Default Email"){ 668 if ( type == "Default Email"){
669 defaultEmail = textChanged; 669 defaultEmail = textChanged;
670 if (cmbDefaultEmail) delete cmbDefaultEmail; 670 if (cmbDefaultEmail){
671 delete cmbDefaultEmail;
672 cmbDefaultEmail = 0l;
673 }
671 cmbDefaultEmail = new QComboBox(inputWid->parentWidget()); 674 cmbDefaultEmail = new QComboBox(inputWid->parentWidget());
672 cmbDefaultEmail->setGeometry(inputWid->frameGeometry()); 675 cmbDefaultEmail->setGeometry(inputWid->frameGeometry());
673 cmbDefaultEmail->show(); 676 cmbDefaultEmail->show();
@@ -684,6 +687,7 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, QLineE
684 QString de; 687 QString de;
685 emails = QStringList::split (",", textChanged ); 688 emails = QStringList::split (",", textChanged );
686 689
690 if ( cmbDefaultEmail )
687 populateDefaultEmailCmb(); 691 populateDefaultEmailCmb();
688 } 692 }
689 693