From 0bde68a5b42aaf3816423c4c80e2e76ed823f348 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 26 Jan 2015 09:54:05 +0100 Subject: [PATCH] Workaround about bug in ktoolinvocation --- kmkernel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kmkernel.cpp b/kmkernel.cpp index 5fb4af063..d872c4343 100644 --- a/kmkernel.cpp +++ b/kmkernel.cpp @@ -366,7 +366,9 @@ bool KMKernel::handleCommandLine( bool noArgsOpensReader ) for ( QStringList::ConstIterator it = attachList.constBegin(); it != end; ++it ) { if ( !(*it).isEmpty() ) { - attachURLs.append( makeAbsoluteUrl( *it ) ); + if ((*it) != QLatin1String("--")) { + attachURLs.append( makeAbsoluteUrl( *it ) ); + } } } } @@ -553,7 +555,6 @@ int KMKernel::openComposer(const QString &to, const QString &cc, const QStringList &customHeaders, const QString &replyTo, const QString &inReplyTo) { - kDebug(); KMail::Composer::TemplateContext context = KMail::Composer::New; KMime::Message::Ptr msg( new KMime::Message ); MessageHelper::initHeader( msg, identityManager() ); @@ -659,7 +660,6 @@ int KMKernel::openComposer (const QString &to, const QString &cc, const QByteArray &attachCharset, unsigned int identity ) { - kDebug(); KMail::Composer::TemplateContext context = KMail::Composer::New; KMime::Message::Ptr msg( new KMime::Message ); KMime::Content *msgPart = 0;