Undo geometry chnage does not work when using topological editing
What is the bug or the crash? What were your expectations and what actually happened?
Undoing geometry edits doesn’t seem to work when topological editing is turned on in the project.
Steps to reproduce the issue
- Use sample bee farming project
- Open it in QGIS and switch on topological editing
- Save the project
- Upload it to QFC
- Open it in QField and modify an existing geometry
- Hit undo
The change doesn’t revert, the feature stays modified and the deltafile still shows the edit. The “reset all local changes” button does work fine though. Undo works normally for adding/deleting features and for attribute edits.
Version
3.7.9
Operating system name
Windows
Operating system version
11
Reinstall QField
- [x] I have a fresh install of the latest QField version, but the problem persists.
- [x] Problem can be reliably reproduced, doesn't happen randomly.
- [x] Problem happens with all files and projects, not only some files or projects.
Additional context
This might also be related to the earlier discussion in: https://github.com/opengisch/QField/issues/6583#issuecomment-3366699963
@vaahtokarkki , we did a fair amount of work on that front with upcoming QField 4.0, could you give that a try? You can a pre-4.0 release candidate APK in here: https://github.com/opengisch/QField/pull/6863#issuecomment-3624866095 (windows and linux builds also available as artifacts of their respective CI runs in the PR)
Hi @nirvn, it looks like the bug is still in the pre-4.0 version. I also found out that the bug can actually be reproduced even more simply: just open the sample project in QField, turn on topological editing, edit a geometry and try undoing it. No need to go through QFC.
@vaahtokarkki , thanks for confirming. I believe this PR (https://github.com/opengisch/QField/pull/6888) fixes the issue. You'll have some APKs to test in ~10 minutes or so :)