Bug 252889 - Right click not working in some areas
Summary: Right click not working in some areas
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 18:30 UTC by allan
Modified: 2010-10-28 20:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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