Signed-off-by: Pavel Mars <mars@basealt.ru>
Remove duplicate submenus.
BUG: 399274
Incorrect to works the contents index tree on left half of application window (TreeWidget) khelpcenterOn the left side of the khelpcenter window is the content ("Contents").
If you open the item "Application Manuals" -> "System" -> "Info Center", the item "Info Center" will generate a tree of additional menu items.
Fixed Bug "Duplicates of the menu “KinfoCenter” appeared in the sub-items "Kinfocenter Modules" (Device Viewer, DMA-Channels, IEEE 1394 DevicesIf you open the menu item "KInfoCenter Modules" in the same content and then open the menu items that appear (for example, Interrupts"Device Viewer", IO-Ports, "Memory", etc.)."OpenGL" or any other item), These duplicates of the "KinfoCenter"the same additional menu are displayed as sub-item trees in the standard menu." will be generated.
EXPECTED RESULT
1. Subtrees of the "Memory" item (and also in Device Viewer, DMA-Channels, IEEE 1394 Devices, Interrupts, IO-PortsThis change removes duplication of generated trees.
This is achieved by registering the URLs of the elements of the content tree in a separate container and checking the URL to be opened: if the base address from the URL is registered, etc.) should not appear.
2.then we request the generation of the menu tree from the registered element of the tree, The original menu "KinfoCenter" should be located only in the section (Application Manuals) → (System) → (Info Center)but not from the current one.
BugBUG: 399274 fixed.