mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
Repeatly download text spoiler until a valid XML document is received
This commit is contained in:
parent
611d61e48b
commit
01277e9ad9
1 changed files with 2 additions and 1 deletions
|
|
@ -296,7 +296,8 @@ void OracleImporter::httpRequestFinished(int requestId, bool error)
|
||||||
buffer->seek(0);
|
buffer->seek(0);
|
||||||
buffer->close();
|
buffer->close();
|
||||||
int cards = importTextSpoiler(set, buffer->data());
|
int cards = importTextSpoiler(set, buffer->data());
|
||||||
++setIndex;
|
if (cards > 0)
|
||||||
|
++setIndex;
|
||||||
|
|
||||||
if (setIndex == setsToDownload.size()) {
|
if (setIndex == setsToDownload.size()) {
|
||||||
emit setIndexChanged(cards, setIndex, QString());
|
emit setIndexChanged(cards, setIndex, QString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue