Bug 417222

Summary: "The requested operation could not be complete" and "Malformed url" error messages when I try to change font sizes
Product: [Applications] khelpcenter Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Documentation Editorial Team <kde-doc-english>
Status: RESOLVED FIXED    
Severity: normal CC: stefanomilani92
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2020-02-06 10:02:54 UTC
SUMMARY
khelpcenter shows the error messages "The requested operation could not be complete" and "Malformed url" after click on "Increase font sizes" and "Decrease font sizes" buttons in toolbar.

STEPS TO REPRODUCE
1. open khelpcenter
2. double click on "Application manuals" in the side bar
3. click on "Increase font sizes" or "Decrease font sizes" buttons in toolbar:
an error page says "The requested operation could not be complete"
4. click on the same button again: now an error message says "Malformed url"


EXPECTED RESULT
khelpcenter should decrease/increase the font sizes without error messages

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2


ADDITIONAL INFORMATION
several items between "Application manuals" and "kioslaves" are affected
Comment 1 Yuri Chornoivan 2020-02-07 16:24:58 UTC
*** Bug 417277 has been marked as a duplicate of this bug. ***
Comment 2 Yuri Chornoivan 2020-02-07 16:32:57 UTC
Git commit ea387e967d8d8cf8724e491d436d382f1e5c41b6 by Yuri Chornoivan.
Committed on 07/02/2020 at 16:32.
Pushed by yurchor into branch 'release/19.12'.

Reload all kind of KHC addresses when the font size changed

Summary:
Previous approach was oversimplified and did not account all possible cases (autogenerated doc lists and glossaries).

Test Plan:
1. Open KHelpCenter.
2. Double click on "Application manuals" in the sidebar.
3. Click on "Increase font sizes" or "Decrease font sizes" button in toolbar.
4. Font should be changed as expected.
5. Open some manual, repeat 3.
6. Open some glossary entry, repeat 3.
7. Font size change should be fine.

Reviewers: #kde_applications

Subscribers: kde-doc-english

Tags: #documentation

Differential Revision: https://phabricator.kde.org/D27196

M  +10   -3    view.cpp
M  +2    -1    view.h

https://commits.kde.org/khelpcenter/ea387e967d8d8cf8724e491d436d382f1e5c41b6