Skip to content

fix: don't add tooltip item if it's empty + fix encoding#179

Open
Montel wants to merge 1 commit intoKDAB:mainfrom
Montel:fix_parse_tooltip
Open

fix: don't add tooltip item if it's empty + fix encoding#179
Montel wants to merge 1 commit intoKDAB:mainfrom
Montel:fix_parse_tooltip

Conversation

@Montel
Copy link
Contributor

@Montel Montel commented Oct 7, 2024

No description provided.

if (values.count() == 1) {
pugi::xml_document document;
const pugi::xml_parse_result result = document.load_string(values.constFirst().toLatin1().constData(),
const pugi::xml_parse_result result = document.load_string(values.constFirst().toLocal8Bit().constData(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this fix the encoding? toLocal8Bit is very strange to me, and I'm not sure if it supports accent and other things.
But I may be wrong, please explain (in any case, it should have a comment in the code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants