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

List:       kde-bugs-dist
Subject:    [Bug 287856] Kmail crash changing email account
From:       Émeric Dupont <emeric.dupont () agol ! org>
Date:       2012-04-02 13:27:17
Message-ID: bug-287856-17878-uM9Sbp5K3d () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=287856

Émeric Dupont <emeric.dupont@agol.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emeric.dupont@agol.org

--- Comment #35 from Émeric Dupont <emeric.dupont@agol.org> ---
I am exposed to the same issue, when switching from an identity with a
signature to an identity without.

Commenting out the setTextCursor line solves the issue for me.


--- kmeditor.cpp.4.8.1  2012-04-02 15:11:52.216043987 +0200
+++ kmeditor.cpp        2012-04-02 15:12:48.926043685 +0200
@@ -705,7 +705,7 @@

     // Remove the old and insert the new signature
     cursor.removeSelectedText();
-    setTextCursor( cursor );
+    //setTextCursor( cursor );
     newSig.insertIntoTextEdit( KPIMIdentities::Signature::AtCursor,
                                KPIMIdentities::Signature::AddNothing, this );
     found = true;

However, this has surely side-effects. But at least I don't have those crashes
anymore.

PS: Adding a CR at the end of the signature of the first identity also resolves
the issue. Thanks to those pointing that out. Could that look like an out of
range cursor ?

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

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