Bug 263319

Summary: First letter of category gets selected when editing splits causing it to be overwritten as typing continues
Product: [Applications] kmymoney Reporter: Jason E. Hale <bsdkaffee>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 4.5.2   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:

Description Jason E. Hale 2011-01-16 14:24:00 UTC
Version:           4.5.2 (using KDE 4.5.5) 
OS:                FreeBSD

In the "Split transaction" window if you start typing the letters of the category you want, the first letter becomes selected (or highlighted) and as you continue to type, the first letter gets overwritten.  This does not happen if you double click the line first and then type in the category you want.

Reproducible: Always

Steps to Reproduce:
Open a "Split transaction" window from a ledger.
Start typing in a category name. (Do not click on the line first)

Actual Results:  
First letter typed gets selected (or highlighted).  As one continues typing, the first letter gets overwritten because it is selected.

Expected Results:  
First letter typed should not become automatically selected.

Using QT 4.7.1 / KDE 4.5.5
Compiled with GCC 4.2.1 on FreeBSD 8.1 i386
Comment 1 Thomas Baumgart 2011-01-17 19:31:48 UTC
SVN commit 1215126 by tbaumgart:

Don't select the character that starts the split editor

BUG: 263319

 M  +20 -9     dialogs/kmymoneysplittable.cpp  
 M  +2 -2      dialogs/kmymoneysplittable.h  
 M  +36 -7     widgets/kmymoneylineedit.cpp  
 M  +10 -13    widgets/kmymoneylineedit.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1215126
Comment 2 Thomas Baumgart 2011-01-17 19:43:30 UTC
SVN commit 1215129 by tbaumgart:

Don't select the character that starts the split editor

Backported to stable branch.

BUG: 263319

 M  +20 -9     dialogs/kmymoneysplittable.cpp  
 M  +2 -2      dialogs/kmymoneysplittable.h  
 M  +36 -7     widgets/kmymoneylineedit.cpp  
 M  +10 -13    widgets/kmymoneylineedit.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1215129