From 025fdd7f0873866945886e692fd559289f1efeef Mon Sep 17 00:00:00 2001 From: eshe Date: Thu, 19 Aug 2010 09:26:25 +0100 Subject: [PATCH] Fixed some issues with special characters and adding contact to address book. --- debian/changelog | 8 ++++++++ src/common/cache.cpp | 4 ---- src/common/contactmanager.cpp | 6 +++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0650c48..1a14dd0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +jenirok (0.2-8) unstable; urgency=low + + * Daemon's connection handling improved. + * Unknown items in log window can now be clicked to open a search dialog. + * Some performance tuning. + + -- Jesse Hakanen Tue, 17 Aug 2010 15:06:46 +0100 + jenirok (0.2-7) unstable; urgency=low * Changed add to contacts button to save street number to street field insted of post box field. diff --git a/src/common/cache.cpp b/src/common/cache.cpp index 5f9a165..ab07647 100644 --- a/src/common/cache.cpp +++ b/src/common/cache.cpp @@ -108,12 +108,8 @@ bool Cache::addItem(Source::Result const& result) query.bindValue(":street", result.street); query.bindValue(":city", result.city); - qDebug() << result.number << result.name << result.street << result.city; - - if(!query.exec()) { - qDebug() << "Unable to add item to cache"; ret = false; } diff --git a/src/common/contactmanager.cpp b/src/common/contactmanager.cpp index caf360c..f9047b5 100644 --- a/src/common/contactmanager.cpp +++ b/src/common/contactmanager.cpp @@ -123,12 +123,12 @@ void ContactManager::stringToName(QString const& strname, ContactManager::Name& if(ename) { - QString additional = QString(ename->additional); + QString additional = QString::fromUtf8(ename->additional); if(additional.isEmpty()) { - name.firstname = QString(ename->given); - name.surname = QString(ename->family); + name.firstname = QString::fromUtf8(ename->given); + name.surname = QString::fromUtf8(ename->family); } else { -- 1.7.9.5