Bug report #10321
Change in behavior of attribute forms
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18746|
I upgraded qgis-dev in OSGEO4W a few days ago to QGIS code revision 2ff79d3.
I have noticed a change in the behavior of the attribute forms with this revision. I am not quite sure of the exact combination of events that is causing it but I am getting some unwanted attribute forms popping up. As these are modal, they are removing focus from what I am trying to do and are frustrating to scroll to and get rid of.
I think one of times it happens is after using the identify tool to open the attribute form, it leaves the feature highlighted in red. This highlighting remains despite selecting and editing another layer. When then going to use the identify tool again it is popping up with the last feature (it must be still highlighted in red), despite being on a different layer and carrying out other operations in the meantime. This then has to be closed before the tool can be used on the current layer.
Not major, but a bit annoying and it has only started happening in this recent revision.
I have 'Suppress attribute form pop-up after feature creation' unchecked and have this set to default in all layers.
#2 Updated by Thomas McAdam over 6 years ago
I am running a94483e and still seeing same behavior. I have had a play around with 2.2 and can give a better description of what is happening.
The difference seems to be that in the new code revisions the feature is staying selected (highlighted red not yellow), after the attribute form is closed. In 2.2 the feature would deselect when the form was closed. Now you have to clear it manually using 'Deselect all' button to prevent the form popping up again. You can also clear it by clicking the mouse into an empty part of the canvas.
Is it possible to deselect the current item when the attribute form is closed? Although this may only be wanted if it was opened by the 'identify tool'.
I hope this clarifies things a little more. Thanks for your help.
#3 Updated by Leyan Ouyang over 6 years ago
I agree with Thomas, when the attribute form is closed, the feature stays selected, and if we switch to another tool then go back to identification, the attribute forms pops up again. I am not sure whether it is better to deselect the feature when leaving identification tool or ensure form pops up only after a manual feature selection from the user ?
Also, I did not find a way to make the red highlighting disappear when we are not in the identification tool, which is bound to happen very often. What is the reasoning behind the persistant highlighting ? I think the best is to simply remove the highlighting when leaving the tool, but maybe I am missing the point of a new feature ?