summaryrefslogtreecommitdiffstats
path: root/bin/draknfs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-23 00:43:41 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 11:00:48 +0100
commit4838ddbb818deba84355d9b6f1adeea96e429ed8 (patch)
treebae1950ea50281fcfd015ddaa9578240e8567141 /bin/draknfs
parent331742480333c9090d1a7244c565cf02a009dd9d (diff)
downloaddrakx-net-4838ddbb818deba84355d9b6f1adeea96e429ed8.tar
drakx-net-4838ddbb818deba84355d9b6f1adeea96e429ed8.tar.gz
drakx-net-4838ddbb818deba84355d9b6f1adeea96e429ed8.tar.bz2
drakx-net-4838ddbb818deba84355d9b6f1adeea96e429ed8.tar.xz
drakx-net-4838ddbb818deba84355d9b6f1adeea96e429ed8.zip
simplify
Diffstat (limited to 'bin/draknfs')
-rwxr-xr-xbin/draknfs7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/draknfs b/bin/draknfs
index c00b7c8..1b6f835 100755
--- a/bin/draknfs
+++ b/bin/draknfs
@@ -253,10 +253,9 @@ sub add_modify_entry {
$access->set_popdown_strings(@access_list);
$luserid->set_popdown_strings(@listuserid_data);
- $lr->set_popdown_strings(@yesno);
- $lsync->set_popdown_strings(@yesno);
- $lsecure->set_popdown_strings(@yesno);
- $lsubtree_check->set_popdown_strings(@yesno);
+ foreach my $box ($lr, $lsync, $lsecure, $lsubtree_check) {
+ $box->set_popdown_strings(@yesno);
+ }
my $button = gtknew('Button', text => N("Directory"));
$button->signal_connect(clicked => sub { show_file_dialog($dir) });