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

Remove unecessary update in the qgsmasksourceselectionwidget constructor #37431

Merged
merged 4 commits into from
Jul 13, 2020

Conversation

obrix
Copy link

@obrix obrix commented Jun 26, 2020

Remove unecessary update in the qgsmasksourceselectionwidget constructor. Update is done automatically when the mask widget is opened. Should fix #34942.

It seems the latest changes introduced by PR 36366 removed the check box "Edit mask settings" and changed the behavior to an automatic update of the masking symbol when the "mask" widget is opened within the property view.
But the "update" function was still called when QgsMaskSourceSelectionWidget is constructed at the opening of the layer property view.

This update call is causing the delay and is unnecessary because the update is now done automatically when the mask view is opened.

…tor. Update is done automatically when the mask widget is opened. Should fix qgis#34942.
@github-actions github-actions bot added this to the 3.16.0 milestone Jun 26, 2020
@nyalldawson nyalldawson reopened this Jun 28, 2020
@obrix obrix requested a review from troopa81 July 3, 2020 08:46
@obrix
Copy link
Author

obrix commented Jul 3, 2020

Just added a commit fixing issue #37473 which is linked to the same PR.

Copy link
Contributor

@troopa81 troopa81 left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks


bool QgsMaskingWidget::hasBeenPopulated()
{
return mMustPopulate == false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return mMustPopulate == false;
return !mMustPopulate;

is a bit more intuitive?

Copy link
Author

Choose a reason for hiding this comment

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

Done !

@nyalldawson nyalldawson merged commit f90497d into qgis:master Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants