~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to messagecomposer/akonadisender.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2011-09-30 19:24:36 UTC
  • mfrom: (0.2.16)
  • Revision ID: package-import@ubuntu.com-20110930192436-ky7p9qgd4rbo28dk
Tags: 4:4.7.1+git110930-0ubuntu1
Update to current KDE 4.7 branch head, commit cfc4f38c

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "akonadisender.h"
21
21
 
22
 
#include <KMessageBox>
23
22
#include <KLocale>
24
23
#include <KDebug>
25
 
#include <KConfig>
26
 
#include <KConfigGroup>
27
24
 
28
25
#include "messagehelper.h"
29
26
#include "messagecomposersettings.h"
131
128
  } else {
132
129
    transportId = message->headerByType( "X-KMail-Transport"  ) ? message->headerByType( "X-KMail-Transport" )->asUnicodeString().toInt() : -1;
133
130
  }
134
 
 
135
131
  const Transport *transport = TransportManager::self()->transportById( transportId );
136
 
  Q_ASSERT( transport );
 
132
  if( !transport ) { 
 
133
      kDebug()<<" No transport defined. Need to create it";
 
134
      return;
 
135
  }
137
136
  kDebug() << "Using transport (" << transport->name() << "," << transport->id() << ")";
138
137
  qjob->transportAttribute().setTransportId( transport->id() );
139
138