[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    A kmail/kspell patch
From:       Laurent Montel <montel () kde ! org>
Date:       2003-08-04 12:01:08
[Download RAW message or body]

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.





["kmail-fix-cancel-spell-check.patch" (text/x-diff)]

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


_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic