--Boundary-00=_EskL/5kWhur2aGs Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, When we cancel a spell check into lineedit, we re-add a new text, but we added "\n\n" caracteres at the end of line spellchecked. So when we cancel, we add text with this two caracteres. So my patch fix it. Could you apply it please. Regards. --Boundary-00=_EskL/5kWhur2aGs Content-Type: text/x-diff; charset="us-ascii"; name="kmail-fix-cancel-spell-check.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kmail-fix-cancel-spell-check.patch" cvs server: Diffing . Index: kmcomposewin.cpp =================================================================== RCS file: /home/kde/kdepim/kmail/kmcomposewin.cpp,v retrieving revision 1.716 diff -u -u -p -r1.716 kmcomposewin.cpp --- kmcomposewin.cpp 3 Aug 2003 15:36:58 -0000 1.716 +++ kmcomposewin.cpp 4 Aug 2003 11:57:05 -0000 @@ -5907,8 +5907,11 @@ void KMEdit::slotSpellResult(const QStri { //stop spell check spellLineEdit = false; - if( s != mComposer->sujectLineWidget()->text() ) - mComposer->sujectLineWidget()->setText( s ); + QString tmpText( s ); + tmpText = tmpText.remove('\n'); + + if( tmpText != mComposer->sujectLineWidget()->text() ) + mComposer->sujectLineWidget()->setText( tmpText ); } else { cvs server: Diffing about cvs server: Diffing interfaces cvs server: Diffing pics cvs server: Diffing profiles --Boundary-00=_EskL/5kWhur2aGs Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KMail Developers mailing list kmail@mail.kde.org http://mail.kde.org/mailman/listinfo/kmail --Boundary-00=_EskL/5kWhur2aGs--