Use ReadPasswordJob::finished for ReadPasswordJob

Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Michael Schuster 2019-11-29 04:47:40 +01:00 committed by Camila Ayres
parent dcc84d3508
commit 76c7ab499f

View file

@ -545,7 +545,7 @@ void Account::retrieveAppPassword(){
ReadPasswordJob *job = new ReadPasswordJob(Theme::instance()->appName());
job->setInsecureFallback(false);
job->setKey(kck);
connect(job, &WritePasswordJob::finished, [this](Job *incoming) {
connect(job, &ReadPasswordJob::finished, [this](Job *incoming) {
ReadPasswordJob *readJob = static_cast<ReadPasswordJob *>(incoming);
QString pwd("");
// Error or no valid public key error out