QField icon indicating copy to clipboard operation
QField copied to clipboard

Undo geometry chnage does not work when using topological editing

Open vaahtokarkki opened this issue 1 month ago • 3 comments

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

  1. Use sample bee farming project
  2. Open it in QGIS and switch on topological editing
  3. Save the project
  4. Upload it to QFC
  5. Open it in QField and modify an existing geometry
  6. 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 avatar Dec 08 '25 07:12 vaahtokarkki

@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)

nirvn avatar Dec 08 '25 09:12 nirvn

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 avatar Dec 08 '25 11:12 vaahtokarkki

@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 :)

nirvn avatar Dec 14 '25 10:12 nirvn