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

« back to all changes in this revision

Viewing changes to kmail/kmkernel.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:
425
425
 
426
426
  KUrl messageUrl = KUrl( messageFile );
427
427
  if ( !messageUrl.isEmpty() && messageUrl.isLocalFile() ) {
428
 
    QByteArray str = KPIMUtils::kFileToByteArray( messageUrl.path(), true, false );
 
428
    QByteArray str = KPIMUtils::kFileToByteArray( messageUrl.toLocalFile(), true, false );
429
429
    if( !str.isEmpty() ) {
430
430
      msg->setBody( QString::fromLocal8Bit( str.data(), str.size() ).toUtf8() );
431
431
    }
739
739
  if ( !msgUrl.isEmpty() && msgUrl.isLocalFile() ) {
740
740
 
741
741
    const QByteArray messageText =
742
 
      KPIMUtils::kFileToByteArray( msgUrl.path(), true, false );
 
742
      KPIMUtils::kFileToByteArray( msgUrl.toLocalFile(), true, false );
743
743
    if ( messageText.isEmpty() )
744
744
      return -2;
745
745
 
911
911
  KUrl msgUrl( messageFile );
912
912
  if ( !msgUrl.isEmpty() && msgUrl.isLocalFile() ) {
913
913
    const QByteArray messageText =
914
 
      KPIMUtils::kFileToByteArray( msgUrl.path(), true, false );
 
914
      KPIMUtils::kFileToByteArray( msgUrl.toLocalFile(), true, false );
915
915
    if ( messageText.isEmpty() )
916
916
      return -2;
917
917