diff options
Diffstat (limited to '')
| -rw-r--r-- | lang/qt/src/qgpgmeencryptjob.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/lang/qt/src/qgpgmeencryptjob.cpp b/lang/qt/src/qgpgmeencryptjob.cpp index 54066fd0..dffd3acb 100644 --- a/lang/qt/src/qgpgmeencryptjob.cpp +++ b/lang/qt/src/qgpgmeencryptjob.cpp @@ -112,6 +112,9 @@ static QGpgMEEncryptJob::result_type encrypt(Context *ctx, QThread *thread,      QGpgME::QIODeviceDataProvider in(plainText);      Data indata(&in); +    if (!plainText->isSequential()) { +        indata.setSizeHint(plainText->size()); +    }      const auto pureFileName = QFileInfo{fileName}.fileName().toStdString();      if (!pureFileName.empty()) { | 
