aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-12-04 16:57:49 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-04 16:57:49 +0100
commitf0dd3f431a844983a71bef1bbe69be11f6fe0a9f (patch)
treeac084820d19e82ab0e1ea2159efe5ed8fbbeebad
parent7a9485503e10fef89631c21ad0f6148fcff51299 (diff)
downloaduserdrake-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--NEWS1
-rwxr-xr-xuserdrake6
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 1866548..e0f77be 100644
--- a/NEWS
+++ b/NEWS
@@ -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)
diff --git a/userdrake b/userdrake
index 0d482b0..b40daa8 100755
--- a/userdrake
+++ b/userdrake
@@ -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;