mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix file dialog filter translations
This commit is contained in:
parent
46e8e3dbbc
commit
e718e9f5e5
@ -130,9 +130,9 @@ void BrowserOptionDialog::saveSettings()
|
||||
void BrowserOptionDialog::showProxyLocationFileDialog()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
QString fileTypeFilter(tr("Executable Files (*.exe);;All Files (*.*)"));
|
||||
QString fileTypeFilter(QString("%1 (*.exe);;%2 (*.*)").arg(tr("Executable Files"), tr("All Files")));
|
||||
#else
|
||||
QString fileTypeFilter(tr("Executable Files (*)"));
|
||||
QString fileTypeFilter(QString("%1 (*)").arg(tr("Executable Files")));
|
||||
#endif
|
||||
auto proxyLocation = QFileDialog::getOpenFileName(this, tr("Select custom proxy location"),
|
||||
QFileInfo(QCoreApplication::applicationDirPath()).filePath(),
|
||||
|
@ -181,8 +181,9 @@ void DatabaseTabWidget::openDatabase(const QString& fileName, const QString& pw,
|
||||
|
||||
void DatabaseTabWidget::importCsv()
|
||||
{
|
||||
QString filter = QString("%1 (*.csv);;%2 (*)").arg(tr("CSV file"), tr("All files"));
|
||||
QString fileName = fileDialog()->getOpenFileName(this, tr("Open CSV file"), QString(),
|
||||
tr("CSV file") + " (*.csv);;" + tr("All files (*)"));
|
||||
filter);
|
||||
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
@ -213,8 +214,9 @@ void DatabaseTabWidget::mergeDatabase(const QString& fileName)
|
||||
|
||||
void DatabaseTabWidget::importKeePass1Database()
|
||||
{
|
||||
QString filter = QString("%1 (*.kdb);;%2 (*)").arg(tr("KeePass 1 database"), tr("All files"));
|
||||
QString fileName = fileDialog()->getOpenFileName(this, tr("Open KeePass 1 database"), QString(),
|
||||
tr("KeePass 1 database") + " (*.kdb);;" + tr("All files (*)"));
|
||||
filter);
|
||||
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user