mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 08:33:54 -07:00
Allow loading local xml file in oracle (#5655)
This commit is contained in:
parent
af68a95964
commit
57e37e8f4d
1 changed files with 2 additions and 2 deletions
|
|
@ -277,14 +277,14 @@ void LoadSetsPage::actLoadSetsFile()
|
||||||
QFileDialog dialog(this, tr("Load sets file"));
|
QFileDialog dialog(this, tr("Load sets file"));
|
||||||
dialog.setFileMode(QFileDialog::ExistingFile);
|
dialog.setFileMode(QFileDialog::ExistingFile);
|
||||||
|
|
||||||
QString extensions = "*.json";
|
QString extensions = "*.json *.xml";
|
||||||
#ifdef HAS_ZLIB
|
#ifdef HAS_ZLIB
|
||||||
extensions += " *.zip";
|
extensions += " *.zip";
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_LZMA
|
#ifdef HAS_LZMA
|
||||||
extensions += " *.xz";
|
extensions += " *.xz";
|
||||||
#endif
|
#endif
|
||||||
dialog.setNameFilter(tr("Sets JSON file (%1)").arg(extensions));
|
dialog.setNameFilter(tr("Sets file (%1)").arg(extensions));
|
||||||
|
|
||||||
if (!fileLineEdit->text().isEmpty() && QFile::exists(fileLineEdit->text())) {
|
if (!fileLineEdit->text().isEmpty() && QFile::exists(fileLineEdit->text())) {
|
||||||
dialog.selectFile(fileLineEdit->text());
|
dialog.selectFile(fileLineEdit->text());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue