Tool settings are saved in toolDeactivated, which is only triggered
when the tool is exited gracefully (e.g. when clicking Crop or Cancel).
This patch calls toolDeactivated when the parent RasterImageView
object is destroyed, ensuring settings are saved even when navigating
away, e.g. to another image, or back to Browse.
BUG: 392036