mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdirshare: do not attempt to get password if user is not specified for the share
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9661a1dc6a
commit
cd18fa33c6
1 changed files with 4 additions and 1 deletions
|
@ -358,7 +358,10 @@ void KDirShareModule::slotDelayedRestore()
|
|||
const uint kdirshareportmin = kdirsharegroup.readEntry("portmin", uint(s_kdirshareportmin));
|
||||
const uint kdirshareportmax = kdirsharegroup.readEntry("portmax", uint(s_kdirshareportmax));
|
||||
const QString kdirshareuser = kdirsharegroup.readEntry("user", QString());
|
||||
const QString kdirsharepassword = m_passwdstore.getPasswd(KPasswdStore::makeKey(kdirsharedirpath));
|
||||
QString kdirsharepassword;
|
||||
if (!kdirshareuser.isEmpty()) {
|
||||
kdirsharepassword = m_passwdstore.getPasswd(KPasswdStore::makeKey(kdirsharedirpath));
|
||||
}
|
||||
// qDebug() << Q_FUNC_INFO << kdirsharekey << kdirsharedirpath << kdirshareportmin << kdirshareportmax;
|
||||
const QString kdirshareerror = share(
|
||||
kdirsharedirpath,
|
||||
|
|
Loading…
Add table
Reference in a new issue