Changeset View
Changeset View
Standalone View
Standalone View
samba/filepropertiesplugin/sambausershareplugin.cpp
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Line(s) | 213 | { | |||
---|---|---|---|---|---|
233 | } else if (KSambaShare::instance()->isDirectoryShared(m_url)) { | 233 | } else if (KSambaShare::instance()->isDirectoryShared(m_url)) { | ||
234 | result = shareData.remove(); | 234 | result = shareData.remove(); | ||
235 | } | 235 | } | ||
236 | } | 236 | } | ||
237 | 237 | | |||
238 | void SambaUserSharePlugin::toggleShareStatus(bool checked) | 238 | void SambaUserSharePlugin::toggleShareStatus(bool checked) | ||
239 | { | 239 | { | ||
240 | propertiesUi.sambaNameEdit->setEnabled(checked); | 240 | propertiesUi.sambaNameEdit->setEnabled(checked); | ||
241 | propertiesUi.sambaAllowGuestChk->setCheckable(checked); | 241 | propertiesUi.sambaNameEdit->setEnabled(checked); | ||
242 | propertiesUi.sambaAllowGuestChk->setEnabled(checked); | ||||
242 | propertiesUi.tableView->setEnabled(checked); | 243 | propertiesUi.tableView->setEnabled(checked); | ||
243 | if (checked && propertiesUi.sambaNameEdit->text().isEmpty()) { | 244 | if (checked && propertiesUi.sambaNameEdit->text().isEmpty()) { | ||
244 | propertiesUi.sambaNameEdit->setText(getNewShareName()); | 245 | propertiesUi.sambaNameEdit->setText(getNewShareName()); | ||
246 | } else { | ||||
247 | propertiesUi.sambaNameEdit->setText(QString()); | ||||
245 | } | 248 | } | ||
246 | } | 249 | } | ||
247 | 250 | | |||
248 | void SambaUserSharePlugin::checkShareName(const QString &name) | 251 | void SambaUserSharePlugin::checkShareName(const QString &name) | ||
249 | { | 252 | { | ||
250 | bool disableButton = false; | 253 | bool disableButton = false; | ||
251 | 254 | | |||
252 | if (name.isEmpty()) { | 255 | if (name.isEmpty()) { | ||
Show All 36 Lines |