From 30988fc010930d5c43ca7bc51ba64d57210c3985 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Fri, 02 Jul 2004 15:38:16 +0000 Subject: bugfix: choosen filenames where not used while import/export and for resources --- (limited to 'kabc/plugins/opie/resourceopie.cpp') diff --git a/kabc/plugins/opie/resourceopie.cpp b/kabc/plugins/opie/resourceopie.cpp index f992301..a4f8d8a 100644 --- a/kabc/plugins/opie/resourceopie.cpp +++ b/kabc/plugins/opie/resourceopie.cpp @@ -46,6 +46,7 @@ $Id$ //US #include #include +#include #include "resource.h" #include "resourceopieconfig.h" @@ -179,8 +180,11 @@ bool ResourceOpie::load() { // qDebug("ResourceOpie::load() %s", mFileName.latin1()); kdDebug(5700) << "ResourceOpie::load(): '" << mFileName << "'" << endl; - - OContactAccess* access = new OContactAccess("KDEPim/Pi", mFileName, 0l, false); + + qDebug("ResourceOpie::load: Try to load file() %s", mFileName.latin1()); + + OContactAccessBackend_XML* backend = new OContactAccessBackend_XML( "KDEPim/Pi", mFileName ); + OContactAccess* access = new OContactAccess("KDEPim/Pi", 0l, backend, false); if ( !access ) { qDebug("Unable to load file() %s", mFileName.latin1()); @@ -215,6 +219,7 @@ bool ResourceOpie::load() } delete access; + delete backend; return true; } -- cgit v0.9.0.2