Fix opening URL's to help files

Authored by pavelmos on Apr 4 2019, 10:31 PM.

Description

Fix opening URL's to help files

Summary:
Signed-off-by: Pavel Mars <mars@basealt.ru>

When you select the menu item "KInfoCenter Modules" -> "DMA-Channels" (or another item: Memory, OpenGL, etc.) -> "KInfoCenter" -> "Start KInfoCenter", the help on the right side of the program screen is incorrect.

When you select any of the submenus that appear, the same help is displayed (../index.html).
This is due to the incorrect formation of links to help.
To fix this bug, add "QUrl :: RemoveFragment" to the string "mToc-> setApplication (url.toString (QUrl :: RemoveScheme | QUrl :: RemoveFilename | QUrl :: StripTrailingSlash))" in the navigatorappitem.cpp file.
This expression removes the fragment from the generated link and allows you to properly load the help file.

Reviewers: yurchor, ltoscano

Reviewed By: yurchor, ltoscano

Subscribers: i.Dark_Templar, kde-doc-english

Tags: Documentation

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

Details

Committed
ltoscanoApr 4 2019, 10:50 PM
Reviewer
yurchor
Differential Revision
D16057: Fix opening URL's to help files
Parents
R125:471c2601884d: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown