diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-04 16:57:49 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-12-04 16:57:49 +0100 |
commit | f0dd3f431a844983a71bef1bbe69be11f6fe0a9f (patch) | |
tree | ac084820d19e82ab0e1ea2159efe5ed8fbbeebad | |
parent | 7a9485503e10fef89631c21ad0f6148fcff51299 (diff) | |
download | userdrake-f0dd3f431a844983a71bef1bbe69be11f6fe0a9f.tar userdrake-f0dd3f431a844983a71bef1bbe69be11f6fe0a9f.tar.gz userdrake-f0dd3f431a844983a71bef1bbe69be11f6fe0a9f.tar.bz2 userdrake-f0dd3f431a844983a71bef1bbe69be11f6fe0a9f.tar.xz userdrake-f0dd3f431a844983a71bef1bbe69be11f6fe0a9f.zip |
fix "forgiving" primary group when (un)selecting secondary groups (mga#11864)
-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; |