From f3cd852da8d6a83117a0a212f84aa7b223963705 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 25 Sep 2024 20:59:00 +0200 Subject: [PATCH] app: return without doing anything when toggling the already active action. --- app/widgets/gimpradioaction.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/widgets/gimpradioaction.c b/app/widgets/gimpradioaction.c index 65a4ab8600..7992444e5e 100644 --- a/app/widgets/gimpradioaction.c +++ b/app/widgets/gimpradioaction.c @@ -537,7 +537,12 @@ gimp_radio_action_set_current_value (GimpRadioAction *action, GimpRadioAction *radio = slist->data; if (radio->priv->value == current_value && - ! gimp_toggle_action_get_active (toggle)) + gimp_toggle_action_get_active (toggle)) + { + /* Value to set is already toggled. */ + return; + } + else if (radio->priv->value == current_value) { /* Change the "active" state but don't notify the property change * immediately. We want to notify both "active" properties