From 4451abf402aa1dd967ef8b70a7eba1192f13afb0 Mon Sep 17 00:00:00 2001 From: gints Date: Fri, 13 May 2005 17:30:15 +0000 Subject: Remove latinism in today owner information - bug 1655 --- (limited to 'core') diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 67b23e1..450ecb7 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp @@ -32,12 +32,14 @@ #include #include +#include +#include +#include #include #include #include #include -#include #include #include @@ -132,9 +134,11 @@ void Today::setRefreshTimer( int interval ) { * Initialises the owner field with the default value, the username */ void Today::setOwnerField() { - QString file = Global::applicationFileName( "addressbook", "businesscard.vcf" ); - if ( QFile::exists( file ) ) { - Contact cont = Contact::readVCard( file )[0]; + QString vfilename = Global::applicationFileName("addressbook", "businesscard.vcf"); + Opie::OPimContactAccess acc( "today", vfilename, + new Opie::OPimContactAccessBackend_VCard("today", vfilename ) ); + if ( acc.load() ) { + Opie::OPimContact cont = acc.allRecords()[0]; QString returnString = cont.fullName(); OwnerField->setText( "" + tr ( "Owned by " ) + returnString + "" ); } else { -- cgit v0.9.0.2