mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fixed typo in oracle importer
This commit is contained in:
parent
3d1052f54c
commit
da6a1a0dbd
2 changed files with 9 additions and 4 deletions
|
|
@ -7,8 +7,13 @@
|
|||
OracleImporter::OracleImporter(const QString &_dataDir, QObject *parent)
|
||||
: CardDatabase(parent), dataDir(_dataDir), setIndex(-1)
|
||||
{
|
||||
QFile setsFile(dataDir + "/sets.xml");
|
||||
setsFile.open(QIODevice::ReadOnly | QIODevice::Text);
|
||||
QString fileName = dataDir + "/sets.xml";
|
||||
QFile setsFile(fileName);
|
||||
if (!setsFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
QMessageBox::critical(0, tr("Error"), tr("Cannot open file '%1'.").arg(fileName));
|
||||
return;
|
||||
}
|
||||
|
||||
QXmlStreamReader xml(&setsFile);
|
||||
QString edition;
|
||||
QString editionLong;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue