app: return without doing anything when toggling the already active action.
This commit is contained in:
parent
a38d3d3028
commit
f3cd852da8
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue