The QTimer initializes spelling after the html message is displayed. This way, all formatting is undone. Spelling is already initiated in the constructor of KMComposeWin, so no harm is done deleting the QTimer.

BUG:106968

svn path=/branches/KDE/3.5/kdepim/; revision=497436
wilder-work
Edwin Schepers 20 years ago
parent 48a97fb8c3
commit 205dd7b99d
  1. 5
      kmcomposewin.cpp
  2. 2
      kmedit.cpp
  3. 2
      partNode.cpp

@ -1814,9 +1814,10 @@ void KMComposeWin::setMsg(KMMessage* newMsg, bool mayAutoSign,
if ( partNode * p = n->parentNode() )
if ( p->hasType( DwMime::kTypeMultipart ) &&
p->hasSubType( DwMime::kSubtypeAlternative ) )
if ( mMsg->headerField( "X-KMail-Markup" ) == "true" )
if ( mMsg->headerField( "X-KMail-Markup" ) == "true" ) {
toggleMarkup( true );
mEditor->setText(n->encodedBody() );
}
/* Handle the special case of non-mime mails */
if ( mMsg->numBodyParts() == 0 && otp.textualContent().isEmpty() ) {
mCharset=mMsg->charset();

@ -218,8 +218,6 @@ KMEdit::KMEdit(QWidget *parent, KMComposeWin* composer,
installEventFilter(this);
KCursor::setAutoHideCursor( this, true, true );
setOverwriteEnabled( true );
QTimer::singleShot( 0, this, SLOT( initializeAutoSpellChecking() ) );
}

@ -179,7 +179,7 @@ const QCString & partNode::encodedBody() {
return mEncodedBody;
if ( mDwPart )
mEncodedBody = mDwPart->AsString().c_str();
mEncodedBody = mDwPart->Body().AsString().c_str();
else
mEncodedBody = 0;
mEncodedOk = true;

Loading…
Cancel
Save