Correct naming of newly generated keyx files

Fixes #6040
This commit is contained in:
Jonathan White 2021-10-02 18:41:39 -04:00
parent 6c18b10979
commit d82abf0be5

View File

@ -108,7 +108,7 @@ void KeyFileEditWidget::createKeyFile()
if (!m_compEditWidget) { if (!m_compEditWidget) {
return; return;
} }
QString filters = QString("%1 (*.keyx; *.key);;%2 (*)").arg(tr("Key files"), tr("All files")); QString filters = QString("%1 (*.keyx *.key);;%2 (*)").arg(tr("Key files"), tr("All files"));
QString fileName = fileDialog()->getSaveFileName(this, tr("Create Key File…"), QString(), filters); QString fileName = fileDialog()->getSaveFileName(this, tr("Create Key File…"), QString(), filters);
if (!fileName.isEmpty()) { if (!fileName.isEmpty()) {
@ -131,7 +131,7 @@ void KeyFileEditWidget::browseKeyFile()
if (!m_compEditWidget) { if (!m_compEditWidget) {
return; return;
} }
QString filters = QString("%1 (*.keyx; *.key);;%2 (*)").arg(tr("Key files"), tr("All files")); QString filters = QString("%1 (*.keyx *.key);;%2 (*)").arg(tr("Key files"), tr("All files"));
QString fileName = fileDialog()->getOpenFileName(this, tr("Select a key file"), QString(), filters); QString fileName = fileDialog()->getOpenFileName(this, tr("Select a key file"), QString(), filters);
if (QFileInfo(fileName).canonicalFilePath() == m_parent->getDatabase()->canonicalFilePath()) { if (QFileInfo(fileName).canonicalFilePath() == m_parent->getDatabase()->canonicalFilePath()) {