-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Data defined Assistant: closing the dialog without setting an expression invalidates the widget #24665
Comments
Author Name: Harrissou Santanna (@DelazJ) Things have been fixed when using the layer properties dialog but not in the styling panel
|
This seems fixed. Can be closed. |
I wouldn't say that: did you test in the styling panel, as mentioned above? |
@DelazJ Yes, in docked mode the widget is altered, see this QGIS/src/gui/qgspropertyoverridebutton.cpp Line 696 in 36ca201
And it directly linked to the legend. Yes there is no cancel button but you have undo, which act as cancel in this case. I would class this as solved. Maybe not perfect but solved. |
Issue is that the user does not know that having opened that panel without any changes had "corrupted" his history, so he'll not probably undo anything (until he realiZes (how long after?) that his features do not display correctly (again with the assumption that an empty assistant corrupts anything - which I'm not able to investigate on)). |
Can still replicate this issue on QGIS 3.16.14 and 3.22.1. |
I don't think this is a bug. If you close assistant dialog without any changes then nothing happens. If you apply dialog, even without entering anything then checkbox is there no matter how you access symbology via layer properties or styling panel. And I think that in case of applying this is an expected behaviour as default configuation is also a valid configuration. |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
Yes
maybe nitpicking but afaict you can not really apply that dialog in Layer styling panel so, not changing anything and moving back is like "Cancel", so the point above is applied in styling panel: nothing changes.
Actually the applied expression, hence default configuration, is INVALID, as you can see if you press the "Edit" entry, because there is a missing parameter to construct a valid expression. Example for the Opacity parameter of a symbol IMHO, the Assistant dialog should have the same checks as some expression dialogs have and if the user did not select fields to have a valid expression, then the OK button remains greyed. Or we pre-filled the dialog (not my preference). |
Can't reproduce with the latest master 79ccc22 |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. |
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 16766
Affected QGIS version: 3.0.0
Redmine category:expressions
I thought I had reported this issue but I couldn't find it in the tracker and given that it's still active...
Open a layer property dialog, Symbology tab
Select a parameter with a data-defined widget
Click the widget, choose Assistant... opening the DD configuration dialog
Close the new dialog without any change
The DD widget becomes red and is set with an errored expression.
I think that closing the dialog without any change shouldn't change DD widget expression.
Btw, hard to find the right category for this kind of issue
The text was updated successfully, but these errors were encountered: