SUMMARY When entering a new transaction, if I try to enter a new name by typing in the Payer/Payee or Category boxes, and the characters I type trigger the drop-down list, typing a subsequent character that doesn't match an existing name triggers the "Do you want to add?" dialogue making it impossible to type the full name. For example: If I already have a Payee called "Employer" and I want to create a transaction with "Pension" as a new payee, I type "P", (the drop down list appears), then type "e", the dialogue appears asking if I want to create a payee called "Pe" STEPS TO REPRODUCE (Using Payee as the example) 1. Open a book with at least one Payee already defined 2. Open a ledger 3. Start to enter a new transaction 4. Start typing in the Payer/Payee box some characters that match the name of an existing payee so that the drop-down list appears 5. Try to type further characters to define a new name OBSERVED RESULT The dialogue asking you to confirm the creation of a new Payee appears after typing one further character that does not match an existing payee EXPECTED RESULT The dialogue doesn't appear until the text box loses the focus SOFTWARE/OS VERSIONS KMyMoney: 5.1.80 Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.7 Graphics Platform: Wayland ADDITIONAL INFORMATION Sometimes two "Do you want to add" dialogues can be triggered at the same time
I am unable to duplicate this behavior here. I am on X11, though. Are you in a position to try it using X11?
I also cannot reproduce on X11 so this is specific to Wayland.
I can confirm this problem on Wayland and not X11. I have no idea if it is in any way related to the fact that our current appimages (at least as of a week or so ago) do not work under Wayland. At least Wayland is now stable enough for me that I can run either Wayland or X11 without too much trouble, so I can test possible solutions, although I don't have any current suggestions.
Is this still happening on Wayland?
I can't reproduce it using kmymoney-master-3185-linux-gcc-x86_64.AppImage under Wayland so setting status to FIXED. I'll try and test it with a local build of git master and update the status if necessary
With 5.1.80-a3e6958ff compiled from source (have not yet checked appimage) It looks good for me also, with the exception that once I do hit a character where the name typed so far would be uniqe, it shows TWO of the "do you want to add " poups. In addition, It does that as soon as the name is not known, where it should not even check that until you hit enter or tab out of the field, otherwise there is still no way to actually enter a new value. Should I reopen, or would this count as a new/different bug?
(In reply to Jack from comment #6) That sounds exactly like the bug I reported, so reopening
I am unable to reproduce this (neither compiled nor latest appimage) on my X-Window based system. Does this only appear under Wayland?
Yes, Wayland only. I suppose the problem is somewhere deep in how each keypress is handled. I can run under a debugger, if you can point me where to look, or perhaps suggest where it might help to add some DEBUG output.
I can imagine, that closing the popup can trigger it. That happens in KMyMoneyAccountCombo::makeCompletion() https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/widgets/kmymoneyaccountcombo.cpp?ref_type=heads#L476 . One could try to comment this line to leave the popup view open and see if that makes a difference. Another idea is using a debugger and setting a breakpoint to https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/views/transactioneditorbase.cpp?ref_type=heads#L227. Once it stops, figure out what triggers the event by examining the call stack.
I can no longer reproduce this using the Appimage for 5.1.80-1270b9c, mark as fixed?
Let's leave it open for now, until either I also can't reproduce, or I can run it under a debugger. (I usually run X11, so will have to restart my session as Wayland first.)