mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
minor oracle improvement
This commit is contained in:
parent
dd7f87242a
commit
b4436f2451
4 changed files with 20 additions and 2 deletions
|
|
@ -460,7 +460,8 @@ bool CardDatabase::loadFromFile(const QString &fileName)
|
|||
bool CardDatabase::saveToFile(const QString &fileName)
|
||||
{
|
||||
QFile file(fileName);
|
||||
file.open(QIODevice::WriteOnly);
|
||||
if (!file.open(QIODevice::WriteOnly))
|
||||
return false;
|
||||
QXmlStreamWriter xml(&file);
|
||||
|
||||
xml.setAutoFormatting(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue