[kmymoney] [Bug 520514] Wrong security set when leaving security input field

Ingo Klöcker bugzilla_noreply at kde.org
Sat May 23 22:05:10 BST 2026


https://bugs.kde.org/show_bug.cgi?id=520514

Ingo Klöcker <kloecker at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/offi |https://invent.kde.org/offi
                   |ce/kmymoney/-/commit/c7bcd4 |ce/kmymoney/-/commit/735fe3
                   |d5da181f32e9ecb81b51f9ee803 |722f665fd813d53ec81e4101bb0
                   |8f7c44d                     |d584343

--- Comment #3 from Ingo Klöcker <kloecker at kde.org> ---
Git commit 735fe3722f665fd813d53ec81e4101bb0d584343 by Ingo Klöcker, on behalf
of Ingo Klöcker.
Committed on 23/05/2026 at 20:09.
Pushed by kloecker into branch 'master'.

Fix setting of wrong security when leaving security widget

QCompleter::currentIndex() unfortunately doesn't return what one might
rightfully expect. Apparently, it always returns the first index of the
items that are displayed in the popup or that were displayed in the
popup when the popup was last open. In particular, it returns the wrong
index if the user selected a different item in the popup.

If the popup is currently visible then popup()->currentIndex() returns
the index of the security that we want to use. Otherwise, we use the
model index corresponding to the currentIndex() of the combo box (which
represents the security that was explicitly selected by the user).

Fixes commit 9f1c7dd0c1c76bdaa4b98b267c787613e94a1e64
FIXED-IN: 5.2.3

M  +10   -4    kmymoney/views/investtransactioneditor.cpp

https://invent.kde.org/office/kmymoney/-/commit/735fe3722f665fd813d53ec81e4101bb0d584343

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list