Project

General

Profile

Actions

Improvements #13052

open

Do not generate an internal path for menu items if not enabled

Added by Matthias Van Ceulebroeck 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
09/17/2024
Due date:
% Done:

0%

Estimated time:

Description

When constructing a WMenuItem, this calls setText(). In case that there isn't a custom path component (which is always the case during construction), the internal path component is automatically generated from the text content.
This always does a narrow() call, to ensure that the component is URL-safe. While not necessarily a bad approach, this will produce a warning log in case character are not supported.

The generation of the path component ought to be delayed until it is enabled.

No data to display

Actions

Also available in: Atom PDF