Commit 9d9c0831 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix logic

parent 7741ba20
Pipeline #41330 canceled with stage
......@@ -213,14 +213,13 @@ void AccountWidget::walletOpenedForLoading(QKeychain::Job *baseJob)
{
auto *job = qobject_cast<ReadPasswordJob *>(baseJob);
Q_ASSERT(job);
if (!job->error()) {
if (job->error()) {
qCWarning(POP3RESOURCE_LOG) << "Failed to open wallet for loading the password." << job->errorString();
passwordEdit->lineEdit()->setPlaceholderText(i18n("Unable to open wallet"));
} else {
passwordEdit->setPassword(job->textData());
passwordEdit->setEnabled(true);
passwordLabel->setEnabled(true);
} else {
qCWarning(POP3RESOURCE_LOG) << "Failed to open wallet for loading the password." << job->errorString();
passwordEdit->lineEdit()->setPlaceholderText(i18n("Unable to open wallet"));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment