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

[ui] Fix all "TypeError" QML warnings #1839

Merged
merged 1 commit into from
Dec 6, 2022
Merged

Conversation

cbentejac
Copy link
Contributor

Description

Some QML properties access exposed Python objects that may or may not be null upon their access. When these objects are accessed while null, QML issues "TypeError" warnings. These warnings have no functional impact as QML correctly handles trying to access null objects, but can spam the logs.

This PR fixes all these warnings by ensuring that the Python objects are not null before they are accessed by QML properties. In case the objects are null, default values are returned instead of still attempting to access them anyway.

@cbentejac cbentejac self-assigned this Dec 5, 2022
…e accessing them

Some QML properties access exposed Python objects that may or may not
be null upon their access. When these objects are accessed while null,
QML issues "TypeError" warnings. These warnings have no functional
impact as QML correctly handles trying to access null objects, but can
spam the logs.

This commit aims at fixing all these warnings by checking that the
Python objects are not null before being accessed.
@fabiencastan fabiencastan added this to the Meshroom 2022.1.0 milestone Dec 6, 2022
@fabiencastan fabiencastan merged commit a2f559f into develop Dec 6, 2022
@fabiencastan fabiencastan deleted the dev/fixQmlWarnings branch December 6, 2022 10:38
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