From 181ad76ec92a2014cd09d9fe67b04cc215d96403 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 31 Dec 2019 12:39:18 -0500 Subject: [PATCH] Use new TOTP structure when importing 1Password Vault * Fixes #3999 --- src/format/OpVaultReaderSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format/OpVaultReaderSections.cpp b/src/format/OpVaultReaderSections.cpp index 68ad478d3c..4dcf80e480 100644 --- a/src/format/OpVaultReaderSections.cpp +++ b/src/format/OpVaultReaderSections.cpp @@ -83,7 +83,7 @@ void OpVaultReader::fillFromSectionField(Entry* entry, const QString& sectionNam } attrValue = query.toString(QUrl::FullyEncoded); } - entry->attributes()->set(Totp::ATTRIBUTE_SETTINGS, attrValue, true); + entry->setTotp(Totp::parseSettings(attrValue)); } else if (attrName.startsWith("expir", Qt::CaseInsensitive)) { QDateTime expiry; if (kind == "date") {