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

[processing] Fix add (single) row tool button broken #39712

Merged
merged 1 commit into from
Nov 1, 2020

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Oct 30, 2020

Description

Fixes #39696.

@nirvn nirvn added Processing Relating to QGIS Processing framework or individual Processing algorithms Bug Either a bug report, or a bug fix. Let's hope for the latter! backport release-3_16 labels Oct 30, 2020
@github-actions github-actions bot added this to the 3.18.0 milestone Oct 30, 2020
@roya0045
Copy link
Contributor

This seems strange that the default argument is ignored to be honest. If this is the case, would it be better to emit 1 when the signal is sent or to add a new function to circumvent the issue? I'm just asking to see what would be best practice.

@nirvn
Copy link
Contributor Author

nirvn commented Oct 30, 2020

It's actually not ignored, but set to false due to the clicked signal being connected as one checked parameter, which it passes onto nb.

A if nb is False conditional check at the beginning of addRow could be an alternative approach, I just felt it was a bit more hackish.

@roya0045
Copy link
Contributor

@nirvn Thank you for the info! I didn't know how qt handled those case.

@nyalldawson nyalldawson merged commit f36701c into qgis:master Nov 1, 2020
@nyalldawson
Copy link
Collaborator

(insert usual grumbles about fragility of Python code here!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add layer to batch processing not working anymore
3 participants