Correctly set KDBX envelope version
Shows a warning when trying to open with a newer minor version than what is currently supported. We always try to save with the lowest KDBX version possible for maximum compatibility.
This commit is contained in:
@@ -87,6 +87,10 @@ public:
|
||||
bool extract(QByteArray&, QString* error = nullptr);
|
||||
bool import(const QString& xmlExportPath, QString* error = nullptr);
|
||||
|
||||
quint32 formatVersion() const;
|
||||
void setFormatVersion(quint32 version);
|
||||
bool hasMinorVersionMismatch() const;
|
||||
|
||||
void releaseData();
|
||||
|
||||
bool isInitialized() const;
|
||||
@@ -166,6 +170,7 @@ signals:
|
||||
private:
|
||||
struct DatabaseData
|
||||
{
|
||||
quint32 formatVersion = 0;
|
||||
QString filePath;
|
||||
bool isReadOnly = false;
|
||||
QUuid cipher = KeePass2::CIPHER_AES256;
|
||||
|
||||
Reference in New Issue
Block a user