Bug 474955

Summary: Duplicated online quotes when changing online quote source from GHNS type to local
Product: [Frameworks and Libraries] alkimia Reporter: Ralf Habacker <ralf.habacker>
Component: Online quotes widgetAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 8.1.2   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 8.1.3
Sentry Crash Report:

Description Ralf Habacker 2023-09-27 22:35:36 UTC
SUMMARY


STEPS TO REPRODUCE
1. start onlinequoteseditor
2. change to alkimiaX profile
3. install an online source from store.kde.org e.g. alkimia-fx-net.rate
4. select this online source in the online quotes list
5. uncheck "GHNS source" and apply changes
6. change profile to another and switch back to alkimiaX profile
7. inspect the online quotes list

OBSERVED RESULT
There are now two online sources in the online quotes list with the same name and type GHNS

EXPECTED RESULT
User expects not to have two online quotes with the same type and name in the list.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  openSUSE 15.4
KDE Frameworks Version:  5.90.0
Qt Version: 5.15.2
Comment 1 Thomas Baumgart 2023-09-30 05:42:48 UTC
*** Bug 474956 has been marked as a duplicate of this bug. ***
Comment 2 Ralf Habacker 2023-12-31 15:09:38 UTC
Git commit f9bce7442ef7c00122a716000018405983507fb2 by Ralf Habacker.
Committed on 31/12/2023 at 16:09.
Pushed by habacker into branch '8.1'.

Fix creating duplicated online quotes

When changing the type of an online quote from GHNS to local
an entry with duplicated name was created. To avoid this,
a new online quote is added instead with '.local' as name suffix.
FIXED-IN:8.1.3

M  +1    -0    src/alkonlinequotesource.cpp
M  +1    -0    src/alkonlinequoteswidget.cpp

https://invent.kde.org/office/alkimia/-/commit/f9bce7442ef7c00122a716000018405983507fb2
Comment 3 Ralf Habacker 2023-12-31 15:16:17 UTC
Git commit 4e8e608340f8216f201c253c06c65ebf2a967365 by Ralf Habacker.
Committed on 31/12/2023 at 16:15.
Pushed by habacker into branch 'master'.

Fix creating duplicated online quotes

When changing the type of an online quote from GHNS to local
an entry with duplicated name was created. To avoid this,
a new online quote is added instead with '.local' as name suffix.
FIXED-IN:8.1.3
(cherry picked from commit f9bce7442ef7c00122a716000018405983507fb2)

M  +1    -0    src/alkonlinequotesource.cpp
M  +1    -0    src/alkonlinequoteswidget.cpp

https://invent.kde.org/office/alkimia/-/commit/4e8e608340f8216f201c253c06c65ebf2a967365