-
-
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
fix editable attribute of joined fields (fix #7739) #576
Conversation
Hi, can this patch be committed so I can test it and then eventually close the ticket? Thanks! |
It works, but it's still easy to turn the field to an editable one in the layer properties. Is this intended behavior? |
Sidenote: Would it not be easier to just set the editable state in QgsAttributeEditor::createAttributeEditor? |
No. It would be better to disable/hide Edit-widget-button/editable-checkbox of joined fields in the layer properties dialog. |
PS: |
updated the commit and add a commit to disable edit type buttons of joined fields (the previous one is minorua@7f0bbf4). |
Did you disable the whole widget config dialog? Should not only the editable button be disabled? And what do you think about simply checking the FieldOrigin in fieldEditable() ? |
Those were enough for me. Any improvement about this patch is welcome. :) |
Sorry, I did not want to steal your time :-) |
@Matthias-Kuhn You know better than I do. I'll cooperate with the test if you modify something about this issue. |
I wasn't sure if I overlooked something, these were just ideas. I'll try to come up with a patch... |
@minorua would you be able to test the referenced pull request. |
@Matthias-Kuhn Great! I've just tested your branch. All (attribute list in the properties, edit form and writing xml) works expectedly. Thanks! |
Merged. Thank you for your work and the testing. |
fixes http://hub.qgis.org/issues/7739