summaryrefslogtreecommitdiffstats
path: root/drakpxelinux.pl
diff options
context:
space:
mode:
Diffstat (limited to 'drakpxelinux.pl')
-rw-r--r--drakpxelinux.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl
index 1f4cc34..743718c 100644
--- a/drakpxelinux.pl
+++ b/drakpxelinux.pl
@@ -279,6 +279,7 @@ sub remove_item {
my $i = ($path->get_indices)[0];
my $entry = $pxelinux_conf->{entries}[$i];
+ $entry->{label} =~ /local/ and info_dialog(N("Local"), N("You can't remove local entry.")) and return 0;
ask_okcancel("Remove $entry->{label} PXE entry ?") or return;
network::pxe::remove_in_help($entry->{label});
my $ke = $network::pxe::pxelinux_client_root . "/$entry->{kernel}";
@@ -322,9 +323,8 @@ sub edit_box_item {
$dialog->set_modal(1);
$dialog->set_resizable(FALSE);
-# my $label = Gtk2::Entry->new;
+ $entry->{label} =~ /local/ and info_dialog(N("Local"), N("You can't modify local entry.")) and return 0;
my $label = Gtk2::Label->new($entry->{label});
-# $label->set_text($entry->{label});
# my $oldlabel = $label;
my $info = Gtk2::Entry->new;