From 9e778ed5d027334493415f59e3a5456a7df54a80 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 23 Nov 2013 00:49:00 +0100 Subject: (modify_entry) fix a crash but the button really should be made unsensitive until a selection is done... --- bin/draksambashare | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/draksambashare b/bin/draksambashare index 536d8cd..2d1bfcd 100755 --- a/bin/draksambashare +++ b/bin/draksambashare @@ -656,6 +656,10 @@ sub modify_printers_entry { sub modify_entry { my ($selected) = @_; + if (!defined($selected)) { + info_dialog(N("Error"), N("Please add or select a Samba share to be able to modify it.")); + return; + } my ($dir, $comment, $create_mask, $directory_mask, $read_list, $write_list, $admin_users, $valid_users, $force_group, $browseable, $public, $writable, $hide_files, $hide_dot_files, $force_create_mode, $preserve_case, $default_case, $inherit_permissions, $share_name); $share_name = Gtk3::Label->new; -- cgit v1.2.1