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

Ingo Klöcker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|                            |5.2.3
  Fixed/Implemented|                            |
                 In|                            |
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/offi
                   |                            |ce/kmymoney/-/commit/c7bcd4
                   |                            |d5da181f32e9ecb81b51f9ee803
                   |                            |8f7c44d
         Resolution|---                         |FIXED

--- Comment #2 from Ingo Klöcker <[email protected]> ---
Git commit c7bcd4d5da181f32e9ecb81b51f9ee8038f7c44d by Ingo Klöcker, on behalf
of Ingo Klöcker.
Committed on 22/05/2026 at 21:27.
Pushed by kloecker into branch '5.2'.

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/c7bcd4d5da181f32e9ecb81b51f9ee8038f7c44d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to