File fix-fileshare-usage.diff of Package kdenetwork3

--- filesharing/simple/fileshare.cpp
+++ filesharing/simple/fileshare.cpp
@@ -64,7 +64,6 @@
     KCModule(ShareFactory::instance(), parent, name)
 {
   KGlobal::locale()->insertCatalogue("kfileshare");                            
-
   QBoxLayout* layout = new QVBoxLayout(this,0,
 				       KDialog::spacingHint());
 
@@ -137,6 +136,7 @@
       m_ccgui->shareGrp->setDisabled( true );
   }
 
+  m_restricted = m_rootPassNeeded = false;
   load();
 }
 
@@ -186,7 +186,8 @@
   if (dlg.exec() == QDialog::Accepted) {
       m_fileShareGroup = dlg.fileShareGroup().name();
       m_restricted = dlg.restricted();
-      m_rootPassNeeded = dlg.rootPassNeeded();      
+      // m_rootPassNeeded = dlg.rootPassNeeded(); this dlg item is not visible
+      m_rootPassNeeded = false;
       configChanged();
   }      
 
@@ -197,9 +198,9 @@
 {
     KSimpleConfig config(QString::fromLatin1(FILESHARECONF),true);
 
-    m_ccgui->shareGrp->setChecked( config.readEntry("FILESHARING", "yes") == "yes" );
+    m_ccgui->shareGrp->setChecked( config.readEntry("FILESHARING", "no") != "no" );
     
-    m_restricted = config.readEntry("RESTRICT", "yes") == "yes";
+    m_restricted = config.readEntry("RESTRICT", "no") != "no";
     
     if (config.readEntry("SHARINGMODE", "simple") == "simple")
         m_ccgui->simpleRadio->setChecked(true);
@@ -214,7 +215,9 @@
     m_ccgui->nfsChk->setChecked( 
           config.readEntry("NFS", "yes") == "yes");
 
-    m_rootPassNeeded = config.readEntry("ROOTPASSNEEDED", "yes") == "yes";
+    // because there is no gui element to change this ...
+    // m_rootPassNeeded = config.readEntry("ROOTPASSNEEDED", "yes") == "yes";
+    m_rootPassNeeded = config.readEntry("ROOTPASSNEEDED", "no") != "no";
                     
     m_smbConf = KSambaShare::instance()->smbConfPath();
 }
openSUSE Build Service is sponsored by