mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Allow loading local xml file in oracle
This commit is contained in:
parent
959a268f91
commit
de77d7a2ce
1 changed files with 2 additions and 2 deletions
|
|
@ -277,14 +277,14 @@ void LoadSetsPage::actLoadSetsFile()
|
|||
QFileDialog dialog(this, tr("Load sets file"));
|
||||
dialog.setFileMode(QFileDialog::ExistingFile);
|
||||
|
||||
QString extensions = "*.json";
|
||||
QString extensions = "*.json *.xml";
|
||||
#ifdef HAS_ZLIB
|
||||
extensions += " *.zip";
|
||||
#endif
|
||||
#ifdef HAS_LZMA
|
||||
extensions += " *.xz";
|
||||
#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())) {
|
||||
dialog.selectFile(fileLineEdit->text());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue