Minor const qualifier fix.
Add entry to layer's menu context to change its datum transform.
Prevent settings update when project properties dialog is canceled.
Revert "Remove unused variable"

This reverts commit 68a6254659d94ff9879e96280bdf777e6aa281d4.