A quick and dirty fix is to make installFile() a slot and in httpRequestFinished() invoke the slot with help of timer (to allow control to return to QHttp, where the signal was emitted from):
if (error) {
...
} else {
//installFile();
QTimer::singleShot(0,
this,
SLOT(installFile
()));
}
//delete file;
//file = 0;
if (error) {
...
} else {
//installFile();
QTimer::singleShot(0, this, SLOT(installFile()));
}
//delete file;
//file = 0;
To copy to clipboard, switch view to plain text mode
Notice also that you can't either delete the file here because you will later use it in installFile().
Bookmarks