diff --git a/src/core/slavebase.cpp b/src/core/slavebase.cpp --- a/src/core/slavebase.cpp +++ b/src/core/slavebase.cpp @@ -144,11 +144,14 @@ return OperationAllowed; } - bool hasTempAuth() + bool hasTempAuth(bool revoke = false) { #ifdef Q_OS_UNIX foreach (const QString &actId, m_TempAuth) { KAuth::Action action(actId); + if (revoke) { + action.revokeAuthorization(); + } if (action.status() != KAuth::Action::AuthorizedStatus) { m_TempAuth.remove(actId); } @@ -548,7 +551,7 @@ { qint64 pid = getpid(); qint8 b = connected ? 1 : 0; - KIO_DATA << pid << mProtocol << host << b << d->hasTempAuth(); + KIO_DATA << pid << mProtocol << host << b << d->hasTempAuth(true); if (d->onHold) { stream << d->onHoldUrl; }