[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: [PATCH] #106968:HTML formatting is lost when saving in drafts folder
From: Edwin Schepers <yez () familieschepers ! nl>
Date: 2006-01-11 21:11:29
Message-ID: 200601112211.37793.yez () familieschepers ! nl
[Download RAW message or body]
Hi,
It's been a while since working on KDE. When I commit a patch to KDE/3.5, do I
also have to do this for trunk? Or will the differences be migrated on a
later time ?
Any comments on the patch ?
Regards,
Edwin
["106968.patch" (text/x-diff)]
Index: kmedit.cpp
===================================================================
--- kmedit.cpp (revision 497048)
+++ kmedit.cpp (working copy)
@@ -218,8 +218,6 @@
installEventFilter(this);
KCursor::setAutoHideCursor( this, true, true );
setOverwriteEnabled( true );
-
- QTimer::singleShot( 0, this, SLOT( initializeAutoSpellChecking() ) );
}
Index: partNode.cpp
===================================================================
--- partNode.cpp (revision 497048)
+++ partNode.cpp (working copy)
@@ -179,7 +179,7 @@
return mEncodedBody;
if ( mDwPart )
- mEncodedBody = mDwPart->AsString().c_str();
+ mEncodedBody = mDwPart->Body().AsString().c_str();
else
mEncodedBody = 0;
mEncodedOk = true;
Index: kmcomposewin.cpp
===================================================================
--- kmcomposewin.cpp (revision 497048)
+++ kmcomposewin.cpp (working copy)
@@ -1814,9 +1814,10 @@
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();
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic