From 8c14e432b7aa332babfefd8b3d2aa5c2da537929 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 27 Apr 2025 16:44:34 +0000 Subject: [PATCH] actions: Hide Layer Attributes for floating selections Resolves #13850 While layer-actions.c blocks showing the Layer Attributes dialogue if the layer is a floating selection, it was still possible to show it if the preview icon was activated. This is because that calls the "layers-edit" action, which bypasses the "layers-edit-attributes" block and shows the dialogue anyway. This patch adds a check for floating selections in layers_edit_attributes_cmd_callback (), and returns if the layer is a floating selection. --- app/actions/layers-commands.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/actions/layers-commands.c b/app/actions/layers-commands.c index 29220a4fde..51f78b8820 100644 --- a/app/actions/layers-commands.c +++ b/app/actions/layers-commands.c @@ -271,6 +271,9 @@ layers_edit_attributes_cmd_callback (GimpAction *action, layer = layers->data; + if (gimp_layer_is_floating_sel (layer)) + return; + #define EDIT_DIALOG_KEY "gimp-layer-edit-attributes-dialog" dialog = dialogs_get_dialog (G_OBJECT (layer), EDIT_DIALOG_KEY);