Bug 262530 - Tabbing to value field in splits window overwrites clipboard contents
Summary: Tabbing to value field in splits window overwrites clipboard contents
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-08 15:38 UTC by Henry C. Gernhardt, III
Modified: 2011-05-06 16:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry C. Gernhardt, III 2011-01-08 15:38:00 UTC
Version:           4.5 (using KDE 4.5.4) 
OS:                Linux

When in the splits window, tabbing into the amount field overwrites the contents of the clipboard.

Reproducible: Always

Steps to Reproduce:
* Open the splits window on a new transaction.
* Enter a category/account in the category field.
* Enter a text string in the memo field.
* Copy that string to the clipboard using the keyboard copy shortcut.
* Tab to the value field and enter a value.
* Confirm the split.
* Begin a second split line, entering a category/account in the category line.
* In the memo field, paste the clipboard contents using the keyboard paste shortcut.

Actual Results:  
The initial amount in the value field from the prior split is pasted.

Expected Results:  
The text copied from the memo field from the prior split should be pasted.

It would seem to me, by observation, that the application is using the clipboard to temporarily store the contents of the value field to be automatically pasted into the calculator application should the user press the calculator button.  Although this is a good idea, the application does not appear to restore the old clipboard contents.  The code should be modified such that the old clipboard contents are saved while the value field has focus, and are restored either when the paste is performed in the calculator application, or when the value field loses focus to something other than the calculator button.
Comment 1 Thomas Baumgart 2011-01-08 16:02:38 UTC
I am unable to duplicate this behavior in 4.5.2 nor in SVN HEAD. Can you try upgrading to the latest stable version?
Comment 2 Henry C. Gernhardt, III 2011-01-08 17:17:49 UTC
The behavior is not extant in 4.5.2.  Thanks for the help!
Comment 3 Cristian Oneț 2011-05-06 16:18:53 UTC
Closing it since it is reported as working in 4.5.2.