mirror of https://github.com/KDE/kasts.git
Fix password saving for windows
Disable forgotten precompiler directives for windows
This commit is contained in:
parent
f2a9adea3d
commit
b4466d86ed
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue