I have a function which makes an XML request of a server to request the data for lookup tables. The server responds with an XML message of the data to insert into a local sqlite database.
On Linux, this all works perfectly.
On Windows, for some strange reason, the requestFinished signal of the QHttp object fires twice. I have checked, and neither time is it sending in an error code, and the id of the request is the id of the request that I have sent. I have verified that I am not making the request twice.
In my requestFinished handler, I create a QDomDocument of the received XML, and I fire off a signal to let another class know it can grab the resulting QDomDocument. The slot for that class loops through the document and inserts the data into a SQLIte database.
The really odd thing is that if I simply comment out the QSqlQuery exec line in this slot's function, the requestFinished signal doesn't fire a second time.
I have no idea what is going on here. If my slot for requestFinished doesn't return quickly enough, can it cause the signal to somehow fire again?
Bookmarks