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

Martin Bednar <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED
            Version|                            |6.5.260800
  Fixed/Implemented|                            |
                 In|                            |
      Latest Commit|                            |https://invent.kde.org/kdev
                   |                            |elop/kdevelop/-/commit/95ee
                   |                            |ca07fd2666b5e3e905000624213
                   |                            |e31cf0fed

--- Comment #1 from Martin Bednar <[email protected]> ---
Git commit 95eeca07fd2666b5e3e905000624213e31cf0fed by Martin Bednar, on behalf
of Benjamin ROBIN.
Committed on 21/07/2026 at 10:38.
Pushed by bednar into branch 'master'.

custom-definesandincludes: when reading settings preserve includes order

When saving the include paths in doWriteSettings(), each include path is
saved into a configuration entry which key is the index serialized to
string.
When loading the include paths from doReadSettings(), the associated QMap
is retrieved, which by default sort by key. But since the key is not longer
an integer, but a string, then "10" is between "1" and "2".
So to preserve the order, when reading the settings, create a new temporary
QMap which key is an integer.
FIXED-IN: 6.5.260800
Pick-to: release/26.08

M  +9    -3   
plugins/custom-definesandincludes/compilerprovider/settingsmanager.cpp

https://invent.kde.org/kdevelop/kdevelop/-/commit/95eeca07fd2666b5e3e905000624213e31cf0fed

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

Reply via email to