Bug report #1213
Attribute Table editing / Stop Editing dialog behavior is confusing
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
1. After opening Attribute Table, if you toggle editing on and then toggle it off without making any changes the Stop Editing dialog appears. If you choose Save or Discard, then subsequent toggling editing on/off without changes does not show the Stop Editing dialog. If Cancel is chosen then the Stop Editing dialog dialog appears again when toggling editing on/off and no changes.
2. in the Stop Editing dialog, if Cancel is chosen then editing is still active, but the Edit button shows off. The Edit button needs to toggled twice to get the Stop Editing dialog now.
3. if editing and changes are pending, attempting to close the Attribute Table closes the window without provoking the Stop Editing dialog. Most users would expect to be asked to save changes. The also would expect to return to editing if Cancel is chosen.
+ when editing is active but there are no changes, then the Stop Editing dialog should NOT be presented on stop editing or Attribute Table is closed.
+ when editing is active and there are changes, then the Stop Editing dialog should be presented on stop editing or Attribute Table is closed.
+ Cancel in the Stop Editing dialog should return to editing.
+ the Toggle Editing button should reflect the current editing state.
as of r9010