Bug 252889

Summary: Right click not working in some areas
Product: [Applications] kmymoney Reporter: allan <agander93>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description allan 2010-09-30 18:30:03 UTC
Version:           SVN trunk (using KDE 4.4.4) 
OS:                Linux

In two different areas, copy/paste is not working correctly, with two different symptoms, but perhaps a common cause.

I was attempting a reconciliation, and wanted to copy a value from the ledger to the opening amount in the reconcile wizard.  With the ledger value highlighted, a right click for the context menu clears the selection.  So although the context menu shows 'copy', nothing gets copied.  In fact, the previous copy contents are still present so an incorrect value can be pasted.  This happens with both the Payment and Deposit fields.
Then, when attempting to paste over 0.00 in the reconcile wizard, again the right click clears the selection so the original contents are not replaced.

Copy/paste from the keyboard works OK, and 'clear' from the context menu also works.

Reproducible: Always

Steps to Reproduce:
Open a new transaction and enter an amount.
Select the amount and right click.
Click on Copy and forget to check that the selection was kept.
Paste into some field.
The previous copy contents will be pasted, which again might not get noticed.

In the reconcile wizard, highlight any opening amount, and attempt to paste over it.
Again, the previous copy contents are still present so an incorrect value can be pasted.

Actual Results:  
as above

Expected Results:  
Right clicking a selected field should not clear the selection.
Possibly, the context menu should not show 'copy' as available if the copy wasn't completed correctly.
Comment 1 Cristian OneČ› 2010-10-28 20:41:56 UTC
SVN commit 1190738 by conet:

BUG: 252889
A right click on the mymoney edit widget would not preserve the selection thus making it impossible to copy a using the context menu. This was called by calling kMyMoneyEdit::ensureFractionalPart(void) during the focusOut event.

 M  +4 -0      kmymoneyedit.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1190738
Comment 2 Cristian OneČ› 2010-10-28 20:42:44 UTC
SVN commit 1190739 by conet:

BUG: 252889
A right click on the mymoney edit widget would not preserve the selection thus making it impossible to copy a using the context menu. This was called by calling kMyMoneyEdit::ensureFractionalPart(void) during the focusOut event.
Merged into the stable branch.

 M  +4 -0      kmymoneyedit.cpp  


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