From b94660837ff3dd4e0f1ae0812e028473f91fd4b4 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Mon, 11 Oct 2004 13:27:12 +0000 Subject: [PATCH] Disable wordwrap in the composer for all inline invitation mails, not just for those sent with autosending enabled. svn path=/trunk/kdepim/; revision=353691 --- kmkernel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kmkernel.cpp b/kmkernel.cpp index 079ebdad7..214b3968a 100644 --- a/kmkernel.cpp +++ b/kmkernel.cpp @@ -422,6 +422,7 @@ int KMKernel::openComposer (const QString &to, const QString &cc, if ( !body.isEmpty() ) msg->setBody(body.utf8()); bool iCalAutoSend = false; + bool noWordWrap = false; KConfigGroup options( config(), "Groupware" ); if ( !attachData.isEmpty() ) { if ( attachName == "cal.ics" && attachType == "text" && @@ -436,6 +437,7 @@ int KMKernel::openComposer (const QString &to, const QString &cc, // Don't show the composer window, if the automatic sending is checked iCalAutoSend = options.readBoolEntry( "AutomaticSending", true ); + noWordWrap = true; // we shant word wrap inline invitations } else { // Just do what we're told to do msgPart = new KMMessagePart; @@ -456,7 +458,7 @@ int KMKernel::openComposer (const QString &to, const QString &cc, KMComposeWin *cWin = new KMComposeWin( msg ); cWin->setAutoDelete( true ); - if( iCalAutoSend ) + if( noWordWrap ) cWin->slotWordWrapToggled( false ); else cWin->setCharset( "", true );