Check for encryption via save options in Quick GUI

So the special file handling used under Android is not
messed.
This commit is contained in:
Martchus 2018-12-22 02:24:48 +01:00
parent b4a89d49fd
commit 3f6b488cf3
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ void Controller::load(const QString &filePath)
setFileOpen(true);
updateWindowTitle();
} catch (const CryptoException &e) {
if (m_file.isEncryptionUsed() && m_password.isEmpty()) {
if ((m_file.saveOptions() & PasswordFileSaveFlags::Encryption) && m_password.isEmpty()) {
emit passwordRequired(m_filePath);
} else {
// clear password since the password which has been provided likely wasn't correct