From 8150f61a487e6272d425d8a0626c30778f4bd8e7 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 27 Jan 2014 16:27:42 +0100 Subject: [PATCH] DeletePasswordJob: Start the WriteJob immediatly We want that if one delete, then read the password directly after, it do not reuse the deleted password. --- keychain.cpp | 2 +- keychain.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/keychain.cpp b/keychain.cpp index 8ae88d1..61127f3 100644 --- a/keychain.cpp +++ b/keychain.cpp @@ -157,7 +157,7 @@ void DeletePasswordJob::doStart() { job->setInsecureFallback(true); job->setSettings(settings()); job->setKey( d->key ); - job->start(); + job->doStart(); } QString DeletePasswordJob::key() const { diff --git a/keychain.h b/keychain.h index 4f00954..dd3a4c2 100644 --- a/keychain.h +++ b/keychain.h @@ -117,6 +117,7 @@ protected: private: friend class QKeychain::JobExecutor; friend class QKeychain::WritePasswordJobPrivate; + friend class DeletePasswordJob; WritePasswordJobPrivate* const d; };