Disable wordwrap in the composer for all inline invitation mails, not just

for those sent with autosending enabled.

svn path=/trunk/kdepim/; revision=353691
wilder-work
Till Adam 22 years ago
parent 65fc9bcba6
commit b94660837f
  1. 4
      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 );

Loading…
Cancel
Save