Bug 332838

Summary: Samba Configuration: Checkbox does not stick when toggling tabs
Product: [openSUSE] openSUSE 10.3 Reporter: Magnus Boman <mboman>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Magnus Boman 2007-10-11 07:46:05 UTC
In the Samba Server configuration, there's a check box in Tab "Shares" for "Allow Users To Share Their Directories". This check box does not stick if you toggle tabs (ie; check it, then toggle to another tab, then come back and it's not longer checked)
There are no logs created for this.
Comment 1 Lukas Ocilka 2007-10-15 14:38:06 UTC
This is the diff:

Index: dialogs.ycp
===================================================================
--- dialogs.ycp (revision 41424)
+++ dialogs.ycp (working copy)
@@ -317,10 +317,14 @@
 
 void InitUserShareWidgets () {
     max_shares  = Samba::GetMaxShares ();
+
     if (max_shares == 0) {
        max_shares      = 100;
        allow_share     = false;
+    } else {
+       allow_share     = true;
     }
+
     shares_group = Samba::shares_group;

- Correctly display user-shares status when adjusting it and
  switching between different tabs at one YaST run (#332838).
- yast2-samba-server-2.16.1