diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-08-23 21:29:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-08-23 21:29:36 +0000 |
commit | 72859edc01348491bb3c265a302fd3dc9ba4b8f9 (patch) | |
tree | 46618e56606d266613c2648d40184b3a02b7e132 | |
parent | e337f9286d5eecf509bbc0d513525aa6c0d13b6d (diff) | |
download | drakx-72859edc01348491bb3c265a302fd3dc9ba4b8f9.tar drakx-72859edc01348491bb3c265a302fd3dc9ba4b8f9.tar.gz drakx-72859edc01348491bb3c265a302fd3dc9ba4b8f9.tar.bz2 drakx-72859edc01348491bb3c265a302fd3dc9ba4b8f9.tar.xz drakx-72859edc01348491bb3c265a302fd3dc9ba4b8f9.zip |
always add newly created setting at top of editable settings so that
we're we can sort them since they're no non editable items between old
& new editable ones
-rwxr-xr-x | perl-install/standalone/drakperm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/standalone/drakperm b/perl-install/standalone/drakperm index 4cc1ced98..06121b7f1 100755 --- a/perl-install/standalone/drakperm +++ b/perl-install/standalone/drakperm @@ -287,7 +287,14 @@ sub row_setting_dialog { }); my %perms; $ok->signal_connect(clicked => sub { - $iter ||= $treeModel->append; # create new item when adding a new one + if (!$iter) { # create new item when adding a new one + $iter = $treeModel->append; + my $first_iter = $treeModel->get_iter_first; + if ($first_iter) { + $treeModel->move_after($iter, $first_iter); + $treeModel->swap($iter, $first_iter); + } + } $treeModel->set($iter, 1 => $file->get_text); if ($usr_check->get_active) { $treeModel->set($iter, 2 => 'current'); |