mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
Merge branch 'develop' into feature/window-modified-indicator
This commit is contained in:
commit
d50fe46f0e
48 changed files with 2903 additions and 130 deletions
|
@ -212,6 +212,23 @@ void DatabaseTabWidget::openDatabase(const QString& fileName, const QString& pw,
|
|||
emit messageDismissGlobal();
|
||||
}
|
||||
|
||||
void DatabaseTabWidget::importCsv()
|
||||
{
|
||||
QString fileName = fileDialog()->getOpenFileName(this, tr("Open CSV file"), QString(),
|
||||
tr("CSV file") + " (*.csv);;" + tr("All files (*)"));
|
||||
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Database* db = new Database();
|
||||
DatabaseManagerStruct dbStruct;
|
||||
dbStruct.dbWidget = new DatabaseWidget(db, this);
|
||||
|
||||
insertDatabase(db, dbStruct);
|
||||
dbStruct.dbWidget->switchToImportCsv(fileName);
|
||||
}
|
||||
|
||||
void DatabaseTabWidget::mergeDatabase()
|
||||
{
|
||||
QString filter = QString("%1 (*.kdbx);;%2 (*)").arg(tr("KeePass 2 Database"), tr("All files"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue