DeletePasswordJob: Start the WriteJob immediatly

We want that if one delete, then read the password directly after,
it do not reuse the deleted password.
This commit is contained in:
Olivier Goffart 2014-01-27 16:27:42 +01:00
parent 85bb5664c6
commit 8150f61a48
2 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void DeletePasswordJob::doStart() {
job->setInsecureFallback(true); job->setInsecureFallback(true);
job->setSettings(settings()); job->setSettings(settings());
job->setKey( d->key ); job->setKey( d->key );
job->start(); job->doStart();
} }
QString DeletePasswordJob::key() const { QString DeletePasswordJob::key() const {

View File

@ -117,6 +117,7 @@ protected:
private: private:
friend class QKeychain::JobExecutor; friend class QKeychain::JobExecutor;
friend class QKeychain::WritePasswordJobPrivate; friend class QKeychain::WritePasswordJobPrivate;
friend class DeletePasswordJob;
WritePasswordJobPrivate* const d; WritePasswordJobPrivate* const d;
}; };