summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-07-06 15:55:15 (UTC)
committer zautrix <zautrix>2004-07-06 15:55:15 (UTC)
commit45e2744074e876a74919b340efc320bdadadcb25 (patch) (unidiff)
tree5fac15064970f378dc59284b451491d924c7e5b2
parent60ec860b41d2af2444955e5cc3d04d132c76dbbb (diff)
downloadkdepimpi-45e2744074e876a74919b340efc320bdadadcb25.zip
kdepimpi-45e2744074e876a74919b340efc320bdadadcb25.tar.gz
kdepimpi-45e2744074e876a74919b340efc320bdadadcb25.tar.bz2
Fixed a crash
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 7cba9aa..3ae23e8 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -770,7 +770,7 @@ void KABCore::contactModified( const KABC::Addressee &addr )
770 770
771void KABCore::newContact() 771void KABCore::newContact()
772{ 772{
773 AddresseeEditorDialog *dialog = 0; 773
774 774
775 QPtrList<KABC::Resource> kabcResources = mAddressBook->resources(); 775 QPtrList<KABC::Resource> kabcResources = mAddressBook->resources();
776 776
@@ -793,14 +793,13 @@ void KABCore::newContact()
793 KABC::Addressee addr; 793 KABC::Addressee addr;
794 addr.setResource( resource ); 794 addr.setResource( resource );
795 mEditorDialog->setAddressee( addr ); 795 mEditorDialog->setAddressee( addr );
796 KApplication::execDialog ( mEditorDialog ); 796 KApplication::execDialog ( mEditorDialog );
797 797
798 } else 798 } else
799 return; 799 return;
800 800
801 // mEditorDict.insert( dialog->addressee().uid(), dialog ); 801 // mEditorDict.insert( dialog->addressee().uid(), dialog );
802 802
803 dialog->show();
804 803
805} 804}
806 805