Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #7395 "Labels on Discovered channels are missing" #7402

Merged

Conversation

kozlovsky
Copy link
Collaborator

This PR fixes #7395. As it turns out, the result of the QAbstractTableModel.headerData method is expected to be a pure str instance and not some str subclass (like TranslatedString).

It looks like in other places, Qt has no prejudice to str subclasses and renders them correctly.

But there is a slight chance we overlooked another place where the string is not rendered properly. For that reason, we can consider removing the TranslatedString subclass. On the other side, it looks like it is currently handled correctly in all other places, and it gives protection against incorrectly translated stings, so we can continue to use it.

@kozlovsky kozlovsky marked this pull request as ready for review May 2, 2023 14:10
@kozlovsky kozlovsky requested a review from a team as a code owner May 2, 2023 14:10
@kozlovsky kozlovsky requested review from drew2a and removed request for a team May 2, 2023 14:10
@kozlovsky kozlovsky merged commit 430c9af into Tribler:release/7.13 May 3, 2023
29 checks passed
@kozlovsky kozlovsky deleted the fix/table_view_controller_headers branch May 3, 2023 09:52
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.

None yet

2 participants