Summary: | Inserting characters in subject line moves cursor to EOL | ||
---|---|---|---|
Product: | [Unmaintained] knode | Reporter: | Andreas Schallenberg <Andreas.Schallenberg> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 0.9.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Andreas Schallenberg
2005-06-08 14:05:31 UTC
SVN commit 426778 by vkrause: Fix regression of my fix for #104788: Don't change cursor position in subject field. CCBUG: 107032 M +2 -1 kncomposer.cpp --- trunk/KDE/kdepim/knode/kncomposer.cpp #426777:426778 @@ -1427,7 +1427,8 @@ QString subject = t; subject.replace( '\n', ' ' ); subject.replace( '\r', ' ' ); - v_iew->s_ubject->setText( subject ); + if ( subject != t ) // setText() sets the cursor to the end + v_iew->s_ubject->setText( subject ); // update caption if( !subject.isEmpty() ) setCaption( subject ); SVN commit 426781 by vkrause: Backport from trunk for KDE 3.4.2: Fix regression of my fix for #104788: Don't change cursor position in subject field. BUG: 107032 M +2 -1 kncomposer.cpp --- branches/KDE/3.4/kdepim/knode/kncomposer.cpp #426780:426781 @@ -1427,7 +1427,8 @@ QString subject = t; subject.replace( '\n', ' ' ); subject.replace( '\r', ' ' ); - v_iew->s_ubject->setText( subject ); + if ( subject != t ) // setText() sets the cursor to the end + v_iew->s_ubject->setText( subject ); // update caption if( !subject.isEmpty() ) setCaption( subject ); |