Implement 1Password Vault Import
* Support importing 1Password vaults (.opvault folders) into KDBX database * Entry attributes are filled based on section and field name * Expiration dates are set for entries * Entry URL's are set from a wider array of fields
This commit is contained in:
@@ -262,6 +262,20 @@ void DatabaseTabWidget::importKeePass1Database()
|
||||
dbWidget->switchToImportKeepass1(fileName);
|
||||
}
|
||||
|
||||
void DatabaseTabWidget::importOpVaultDatabase()
|
||||
{
|
||||
QString fileName = fileDialog()->getExistingDirectory(this, "Open .opvault database");
|
||||
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto db = QSharedPointer<Database>::create();
|
||||
auto* dbWidget = new DatabaseWidget(db, this);
|
||||
addDatabaseTab(dbWidget);
|
||||
dbWidget->switchToImportOpVault(fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to close the current database and remove its tab afterwards.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user