diff --git a/samba/filepropertiesplugin/sambausershareplugin.cpp b/samba/filepropertiesplugin/sambausershareplugin.cpp --- a/samba/filepropertiesplugin/sambausershareplugin.cpp +++ b/samba/filepropertiesplugin/sambausershareplugin.cpp @@ -238,10 +238,13 @@ void SambaUserSharePlugin::toggleShareStatus(bool checked) { propertiesUi.sambaNameEdit->setEnabled(checked); - propertiesUi.sambaAllowGuestChk->setCheckable(checked); + propertiesUi.sambaNameEdit->setEnabled(checked); + propertiesUi.sambaAllowGuestChk->setEnabled(checked); propertiesUi.tableView->setEnabled(checked); if (checked && propertiesUi.sambaNameEdit->text().isEmpty()) { propertiesUi.sambaNameEdit->setText(getNewShareName()); + } else { + propertiesUi.sambaNameEdit->setText(QString()); } } diff --git a/samba/filepropertiesplugin/sambausershareplugin.ui b/samba/filepropertiesplugin/sambausershareplugin.ui --- a/samba/filepropertiesplugin/sambausershareplugin.ui +++ b/samba/filepropertiesplugin/sambausershareplugin.ui @@ -32,6 +32,9 @@ + + false + Name: @@ -50,7 +53,7 @@ - true + false Allow Guests