~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to kresources/kolab/kabc/contact.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
1255
1255
  QImage img;
1256
1256
  KUrl url;
1257
1257
  if ( resource->kmailGetAttachment( url, subResource, sernum, attachmentName ) && !url.isEmpty() ) {
1258
 
    const QString path = url.path();
 
1258
    const QString path = url.toLocalFile();
1259
1259
    img.load( path );
1260
1260
    QFile::remove(path);
1261
1261
  }
1281
1281
  QByteArray data;
1282
1282
  KUrl url;
1283
1283
  if ( resource->kmailGetAttachment( url, subResource, sernum, attachmentName ) && !url.isEmpty() ) {
1284
 
    QFile f( url.path() );
 
1284
    QFile f( url.toLocalFile() );
1285
1285
    if ( f.open( QIODevice::ReadOnly ) ) {
1286
1286
      data = f.readAll();
1287
1287
      f.close();