Skip to content

Issue #7667: Disable Arbitrary Rotation option in Image/Layer menus if no image is open

Alx Sa requested to merge alxsa-no-image-no-rotation-menu into master

This patch attempts to resolve issue #7667 (closed).

Currently, the Image and Layer menus enable "Arbitrary Rotation" options even if no image is open. All other options in their respective groups are disabled in that case, as seen in @silverwoodchuck47's screenshot:

image

This patch adds two SET_SENSITIVE () commands in tools_actions_update () for "tools-rotate-arbitrary" and "tools-rotate-image-arbitrary". The Rotate command in the Tools menu is not affected, as none of the other options in that menu are disabled when no image is open.

If approved, this should be very easy to backport to 2.10. :)

Merge request reports