support mtgo .dek files (#3889)

* support mtgo .dek files

they use plain text internally so we just need to reveal them in the load dialog

* formatting
This commit is contained in:
skwerlman 2020-02-04 08:11:24 -05:00 committed by GitHub
parent 0f18fa9546
commit 8dd1e39ea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,9 @@
#include <QFile>
#include <QStringList>
const QStringList DeckLoader::fileNameFilters =
QStringList() << QObject::tr("Common deck formats (*.cod *.dec *.txt *.mwDeck)") << QObject::tr("All files (*.*)");
const QStringList DeckLoader::fileNameFilters = QStringList()
<< QObject::tr("Common deck formats (*.cod *.dec *.dek *.txt *.mwDeck)")
<< QObject::tr("All files (*.*)");
DeckLoader::DeckLoader() : DeckList(), lastFileName(QString()), lastFileFormat(CockatriceFormat), lastRemoteDeckId(-1)
{
@ -295,4 +296,4 @@ QString DeckLoader::getCompleteCardName(const QString cardName) const
}
return cardName;
}
}