Fixed some issues with special characters and adding contact to address book.
authoreshe <jessehakanen@gmail.com>
Thu, 19 Aug 2010 08:26:25 +0000 (09:26 +0100)
committereshe <jessehakanen@gmail.com>
Thu, 19 Aug 2010 08:26:25 +0000 (09:26 +0100)
debian/changelog
src/common/cache.cpp
src/common/contactmanager.cpp

index 0650c48..1a14dd0 100644 (file)
@@ -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 <jessehakanen@gmail.com>  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.
 jenirok (0.2-7) unstable; urgency=low
 
   * Changed add to contacts button to save street number to street field insted of post box field.
index 5f9a165..ab07647 100644 (file)
@@ -108,12 +108,8 @@ bool Cache::addItem(Source::Result const& result)
     query.bindValue(":street", result.street);
     query.bindValue(":city", result.city);
 
     query.bindValue(":street", result.street);
     query.bindValue(":city", result.city);
 
-    qDebug() << result.number << result.name << result.street << result.city;
-
-
     if(!query.exec())
     {
     if(!query.exec())
     {
-        qDebug() << "Unable to add item to cache";
         ret = false;
     }
 
         ret = false;
     }
 
index caf360c..f9047b5 100644 (file)
@@ -123,12 +123,12 @@ void ContactManager::stringToName(QString const& strname, ContactManager::Name&
 
     if(ename)
     {
 
     if(ename)
     {
-        QString additional = QString(ename->additional);
+        QString additional = QString::fromUtf8(ename->additional);
 
         if(additional.isEmpty())
         {
 
         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
         {
         }
         else
         {