author | zautrix <zautrix> | 2004-07-03 21:47:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 21:47:33 (UTC) |
commit | 5e59162e6eb6603610d1ca4c96d5d97acae0f60b (patch) (side-by-side diff) | |
tree | c891d1e2125cf6f68509332fe06c878709525480 | |
parent | 54e76d203297aa5da51342492d482187f4d6cd20 (diff) | |
download | kdepimpi-5e59162e6eb6603610d1ca4c96d5d97acae0f60b.zip kdepimpi-5e59162e6eb6603610d1ca4c96d5d97acae0f60b.tar.gz kdepimpi-5e59162e6eb6603610d1ca4c96d5d97acae0f60b.tar.bz2 |
Fixed crash when accessing opie resource
-rw-r--r-- | kabc/plugins/opie/resourceopie.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kabc/plugins/opie/resourceopie.cpp b/kabc/plugins/opie/resourceopie.cpp index a4f8d8a..3b2a6b7 100644 --- a/kabc/plugins/opie/resourceopie.cpp +++ b/kabc/plugins/opie/resourceopie.cpp @@ -198,49 +198,50 @@ bool ResourceOpie::load() mConverter = new OpieConverter(); OContactAccess::List::Iterator it; OContactAccess::List allList = access->allRecords(); bool res = false; for ( it = allList.begin(); it != allList.end(); ++it ) { OContact c = (*it); KABC::Addressee addressee; res = mConverter->opieToAddressee( c, addressee ); if ( !addressee.isEmpty() && res ) { addressee.setResource( this ); addressBook()->insertAddressee( addressee ); } // qDebug("found %s", c.fullName().latin1()); } delete access; - delete backend; + // it seems so, that deletion of access deletes backend as well + //delete backend; return true; } bool ResourceOpie::save( Ticket *ticket ) { qDebug("ResourceOpie::save() has to be fixed - %s", mFileName.latin1()); /*US qDebug("ResourceOpie::save %s", mFileName.latin1()); kdDebug(5700) << "ResourceOpie::save()" << endl; // create backup file QString extension = "_" + QString::number( QDate::currentDate().dayOfWeek() ); */ /*US we use a simpler method to create a backupfile (void) KSaveFile::backupFile( mFileName, QString::null ,extension ); KSaveFile saveFile( mFileName ); bool ok = false; if ( saveFile.status() == 0 && saveFile.file() ) { |