From 07fd53ae10e9246f6898c25044595054e128c169 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Mon, 8 Aug 2005 08:52:41 +0000 Subject: fix bug #17255 (modify empty /etc/exports file) --- perl-install/standalone/draknfs | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone/draknfs') diff --git a/perl-install/standalone/draknfs b/perl-install/standalone/draknfs index 5d5efc115..ac05b0ef9 100644 --- a/perl-install/standalone/draknfs +++ b/perl-install/standalone/draknfs @@ -303,6 +303,7 @@ sub add_modify_entry { if ($wanted =~ /modify/) { $iter = $selection->get_selected; + $iter or info_dialog(N("Error"), N("Please add an NFS share to be able to modify it.")) and return; my $path = $model->get_path($iter); $i = ($path->get_indices)[0]; $dir->set_text($listshare[$i]{dir}); -- cgit v1.2.1