Commit d16c1ae9 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Fix file selection filters

Added patch as provided by Alexandre Peixoto Ferreira

BUG: 388763
FIXED-IN: 5.0
parent 719f7139
......@@ -142,7 +142,7 @@
</property>
<property name="filter">
<string>*.css|CSS files
*|All files</string>
*|All files (*)</string>
</property>
<property name="kcfg_property" stdset="0">
<cstring>text</cstring>
......
......@@ -121,7 +121,7 @@ void OFXImporter::slotImportFile()
QUrl url = importInterface()->selectFile(i18n("OFX import file selection"),
"",
"*.ofx *.qfx *.ofc|OFX files (*.ofx, *.qfx, *.ofc)\n*|All files",
"*.ofx *.qfx *.ofc|OFX files (*.ofx *.qfx *.ofc);;*|All files (*)",
QFileDialog::ExistingFile,
widget);
......
......@@ -61,7 +61,7 @@ namespace NewUserWizard
folder = QDir::homePath();
d->ui->m_dataFileEdit->setStartDir(QUrl::fromLocalFile(folder));
d->ui->m_dataFileEdit->setUrl(QUrl::fromLocalFile(folder + QLatin1Char('/') + user.loginName() + QLatin1String(".kmy")));
d->ui->m_dataFileEdit->setFilter(i18n("*.kmy *.xml|KMyMoney files\n*|All files"));
d->ui->m_dataFileEdit->setFilter(i18n("*.kmy *.xml|KMyMoney files (*.kmy *.xml);;*|All files (*)"));
d->ui->m_dataFileEdit->setMode(KFile::File);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment