-rw-r--r-- | kaddressbook/kabcore.cpp | 8 | ||||
-rw-r--r-- | kaddressbook/kabprefs.cpp | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 939296f..9b059d3 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -317,12 +317,13 @@ KABCore::~KABCore() // save(); //saveSettings(); //KABPrefs::instance()->writeConfig(); delete AddresseeConfig::instance(); - mAddressBook = 0; - KABC::StdAddressBook::close(); + mAddressBook = 0; + KABC::StdAddressBook::close(); + + delete syncManager; - delete syncManager; } void KABCore::restoreSettings() { @@ -701,8 +702,9 @@ void KABCore::export2phone() continue; a.simplifyEmails(); a.simplifyPhoneNumbers(); a.simplifyPhoneNumberTypes(); + a.simplifyAddresses(); if (description.isEmpty()) description = a.formattedName(); QString vcard; diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index 552c933..dded2bf 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp @@ -81,10 +81,11 @@ KABPrefs::KABPrefs() } KABPrefs::~KABPrefs() { + //qDebug("KABPrefs::~KABPrefs() "); } - + KABPrefs *KABPrefs::instance() { if ( !sInstance ) { #ifdef KAB_EMBEDDED |