diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-23 00:49:00 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-24 11:00:48 +0100 |
commit | 9e778ed5d027334493415f59e3a5456a7df54a80 (patch) | |
tree | 8b9d05432b5ff06c017bb93b7b82b87282eab886 /bin | |
parent | 4838ddbb818deba84355d9b6f1adeea96e429ed8 (diff) | |
download | drakx-net-9e778ed5d027334493415f59e3a5456a7df54a80.tar drakx-net-9e778ed5d027334493415f59e3a5456a7df54a80.tar.gz drakx-net-9e778ed5d027334493415f59e3a5456a7df54a80.tar.bz2 drakx-net-9e778ed5d027334493415f59e3a5456a7df54a80.tar.xz drakx-net-9e778ed5d027334493415f59e3a5456a7df54a80.zip |
(modify_entry) fix a crash
but the button really should be made unsensitive until a selection is done...
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/draksambashare | 4 |
1 files changed, 4 insertions, 0 deletions
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; |