Fix password saving for windows

Disable forgotten precompiler directives for windows
This commit is contained in:
Bart De Vries 2024-11-05 18:39:12 +01:00
parent f2a9adea3d
commit b4466d86ed
No known key found for this signature in database
GPG Key ID: 7285665DA6E2D42B
1 changed files with 0 additions and 2 deletions

View File

@ -453,7 +453,6 @@ void Sync::savePasswordToKeyChain(const QString &username, const QString &passwo
{ {
qCDebug(kastsSync) << "Save the password to the keychain for" << username; qCDebug(kastsSync) << "Save the password to the keychain for" << username;
#ifndef Q_OS_WINDOWS
QKeychain::WritePasswordJob *job = new QKeychain::WritePasswordJob(qAppName(), this); QKeychain::WritePasswordJob *job = new QKeychain::WritePasswordJob(qAppName(), this);
job->setAutoDelete(false); job->setAutoDelete(false);
job->setKey(username); job->setKey(username);
@ -463,7 +462,6 @@ void Sync::savePasswordToKeyChain(const QString &username, const QString &passwo
onWritePasswordJobFinished(job, username, password); onWritePasswordJobFinished(job, username, password);
}); });
job->start(); job->start();
#endif
} }
void Sync::savePasswordToFile(const QString &username, const QString &password) void Sync::savePasswordToFile(const QString &username, const QString &password)