diff options
author | Antoine Ginies <aginies@mandriva.com> | 2005-07-13 05:24:43 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2005-07-13 05:24:43 +0000 |
commit | 9bae2ad2635da85d085f27d25d4945c8efe10e69 (patch) | |
tree | 52032e6de1cd74f092159107fa8d2cff704e8a4f | |
parent | 62ddc1e6b4ce78355af3ae88a43f3395724d8efb (diff) | |
download | drakpxelinux-9bae2ad2635da85d085f27d25d4945c8efe10e69.tar drakpxelinux-9bae2ad2635da85d085f27d25d4945c8efe10e69.tar.gz drakpxelinux-9bae2ad2635da85d085f27d25d4945c8efe10e69.tar.bz2 drakpxelinux-9bae2ad2635da85d085f27d25d4945c8efe10e69.tar.xz drakpxelinux-9bae2ad2635da85d085f27d25d4945c8efe10e69.zip |
can't remove or edit local entry
-rw-r--r-- | drakpxelinux.pl | 4 |
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; |