mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
allow any filetype to be opened as a database
This commit is contained in:
parent
8e8efc67e6
commit
21302782e1
@ -82,8 +82,9 @@ void DatabaseTabWidget::newDatabase()
|
||||
|
||||
void DatabaseTabWidget::openDatabase()
|
||||
{
|
||||
QString filter = QString("%1 (*.kdbx);;%2 (*)").arg(tr("KeePass 2 Database"), tr("All files"));
|
||||
QString fileName = fileDialog()->getOpenFileName(m_window, tr("Open database"), QString(),
|
||||
tr("KeePass 2 Database").append(" (*.kdbx)"));
|
||||
filter);
|
||||
if (!fileName.isEmpty()) {
|
||||
openDatabase(fileName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user