From 21302782e11ccf5c674ae3403a86421266885716 Mon Sep 17 00:00:00 2001 From: Franklin Strube Date: Tue, 5 Jun 2012 13:41:21 -0400 Subject: [PATCH] allow any filetype to be opened as a database --- src/gui/DatabaseTabWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp index e73758b6d..e3cec3c75 100644 --- a/src/gui/DatabaseTabWidget.cpp +++ b/src/gui/DatabaseTabWidget.cpp @@ -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); }