aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 53c99969..5de02b8c 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -379,7 +379,7 @@ public:
{
qCDebug(MAIN) << "Saving access token to keychain for" << q->userId();
auto job = new QKeychain::WritePasswordJob(qAppName());
- job->setAutoDelete(false);
+ job->setAutoDelete(true);
job->setKey(q->userId());
job->setBinaryData(data->accessToken());
job->start();