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

disable feature picker when no feature is available in expression preview widget #37518

Merged
merged 3 commits into from
Jul 7, 2020

Conversation

3nids
Copy link
Member

@3nids 3nids commented Jul 1, 2020

following discussion in #37139 (comment)

@github-actions github-actions bot added this to the 3.16.0 milestone Jul 1, 2020
@nyalldawson
Copy link
Collaborator

Why not hide it also?

@3nids
Copy link
Member Author

3nids commented Jul 1, 2020

I tend to prefer to disable rather than hiding but no strong opinion.

@3nids 3nids requested a review from nirvn July 2, 2020 06:01
3nids and others added 2 commits July 7, 2020 06:30
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
@3nids 3nids merged commit 5f6dab0 into qgis:master Jul 7, 2020
@3nids 3nids deleted the disable-feature-picker branch July 7, 2020 08:29
rouault added a commit to rouault/QGIS that referenced this pull request Sep 16, 2020
…38646)

In the text edit of the feature picker, if one currently enters an invalid value,
the whole feature picker becomes disabled, which requires to close and re-open
the expression string builder dialog.

So instead of doing this, use the preview label to indicate that a valid
feature is needed to evaluate the expression, for expressions that require feature
fields.

Previous related pull requests are:
qgis#37518
qgis#37139
nyalldawson pushed a commit that referenced this pull request Sep 16, 2020
In the text edit of the feature picker, if one currently enters an invalid value,
the whole feature picker becomes disabled, which requires to close and re-open
the expression string builder dialog.

So instead of doing this, use the preview label to indicate that a valid
feature is needed to evaluate the expression, for expressions that require feature
fields.

Previous related pull requests are:
#37518
#37139
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.

3 participants