Qt: Fix windows build of new jobs
-- See git log for changes.
This commit is contained in:
parent
7158397c09
commit
67057d83f5
@ -148,7 +148,7 @@ static QGpgMEDecryptVerifyJob::result_type decrypt_verify_from_filename(Context
|
||||
{
|
||||
Data indata;
|
||||
#ifdef Q_OS_WIN
|
||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
||||
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||
#else
|
||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||
#endif
|
||||
|
@ -172,7 +172,7 @@ static QGpgMEEncryptJob::result_type encrypt_to_filename(Context *ctx,
|
||||
{
|
||||
Data indata;
|
||||
#ifdef Q_OS_WIN
|
||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
||||
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||
#else
|
||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||
#endif
|
||||
|
@ -176,7 +176,7 @@ static QGpgMESignEncryptJob::result_type sign_encrypt_to_filename(Context *ctx,
|
||||
{
|
||||
Data indata;
|
||||
#ifdef Q_OS_WIN
|
||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
||||
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||
#else
|
||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||
#endif
|
||||
|
@ -174,7 +174,7 @@ static QGpgMESignJob::result_type sign_to_filename(Context *ctx,
|
||||
{
|
||||
Data indata;
|
||||
#ifdef Q_OS_WIN
|
||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
||||
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||
#else
|
||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||
#endif
|
||||
|
@ -135,14 +135,14 @@ static QGpgMEVerifyDetachedJob::result_type verify_from_filename(Context *ctx,
|
||||
{
|
||||
Data signatureData;
|
||||
#ifdef Q_OS_WIN
|
||||
signatureData.setFileName(signatureFilePath().toUtf8().constData());
|
||||
signatureData.setFileName(signatureFilePath.toUtf8().constData());
|
||||
#else
|
||||
signatureData.setFileName(QFile::encodeName(signatureFilePath).constData());
|
||||
#endif
|
||||
|
||||
Data signedData;
|
||||
#ifdef Q_OS_WIN
|
||||
signedData.setFileName(signedFilePath().toUtf8().constData());
|
||||
signedData.setFileName(signedFilePath.toUtf8().constData());
|
||||
#else
|
||||
signedData.setFileName(QFile::encodeName(signedFilePath).constData());
|
||||
#endif
|
||||
|
@ -140,7 +140,7 @@ static QGpgMEVerifyOpaqueJob::result_type verify_from_filename(Context *ctx,
|
||||
{
|
||||
Data indata;
|
||||
#ifdef Q_OS_WIN
|
||||
indata.setFileName(inputFilePath().toUtf8().constData());
|
||||
indata.setFileName(inputFilePath.toUtf8().constData());
|
||||
#else
|
||||
indata.setFileName(QFile::encodeName(inputFilePath).constData());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user