mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
Merge pull request #25 from dreamcwli/master
Repeatly download text spoiler until a valid XML document is received
This commit is contained in:
commit
95c6058dc3
1 changed files with 2 additions and 1 deletions
|
|
@ -296,7 +296,8 @@ void OracleImporter::httpRequestFinished(int requestId, bool error)
|
|||
buffer->seek(0);
|
||||
buffer->close();
|
||||
int cards = importTextSpoiler(set, buffer->data());
|
||||
++setIndex;
|
||||
if (cards > 0)
|
||||
++setIndex;
|
||||
|
||||
if (setIndex == setsToDownload.size()) {
|
||||
emit setIndexChanged(cards, setIndex, QString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue