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

Various small fixes #6372

Merged
merged 6 commits into from
Sep 28, 2021
Merged

Various small fixes #6372

merged 6 commits into from
Sep 28, 2021

Conversation

ichorid
Copy link
Contributor

@ichorid ichorid commented Sep 27, 2021

fixes #6369
fixes #6366
fixes #6368
fixes #6083
fixes #6213
fixes #5886

@ichorid ichorid changed the title Replace magic number in GUI Various small fixes Sep 27, 2021
@ichorid ichorid marked this pull request as ready for review September 27, 2021 17:19
@ichorid ichorid requested review from a team, kozlovsky and devos50 and removed request for a team September 27, 2021 17:19
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.1% 2.1% Duplication

# button, by the moment the request callback triggers some actions on the model,
# QT could have already deleted the underlying model object, which will result in
# "wrapped C/C++ object has been deleted" error (see e.g. https://github.com/Tribler/tribler/issues/6083)
for data, method in ((patch_data, "PATCH"), (delete_data, "DELETE")):
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, unrolled for-loop looks a bit more clear here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, that way I'd have to repeat the comment twice 😉

@ichorid ichorid merged commit fcea4cf into Tribler:main Sep 28, 2021
@ichorid ichorid deleted the small_fixes branch September 28, 2021 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment