diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | userdrake | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,4 @@ +- fix "forgiving" primary group when (un)selecting secondary groups (mga#11864) - ignore events who lack ->x & ->y (thus fixing a crash if clicking too often) @@ -1214,8 +1214,9 @@ sub Edit() { } else { InArray($item, \@primgroup) and @primgroup = RemoveFromArray($item, \@primgroup); } + my $old = $us->{o}{primgroup}->entry->get_text; $us->{o}{primgroup}->set_popdown_strings(@primgroup); - $Gent and $us->{o}{primgroup}->entry->set_text($Gent->GroupName($GetValue)); + $us->{o}{primgroup}->entry->set_text($old); } } } @@ -1237,8 +1238,9 @@ sub Edit() { } else { InArray($item, \@primgroup) and @primgroup = RemoveFromArray($item, \@primgroup); } + my $old = $us->{o}{primgroup}->entry->get_text; $us->{o}{primgroup}->set_popdown_strings(@primgroup); - $Gent and $us->{o}{primgroup}->entry->set_text($Gent->GroupName($GetValue)); + $us->{o}{primgroup}->entry->set_text($old); } } 0; |