mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-09-04 10:02:18 +00:00
- Fix torrent upload in Web UI (worked randomly)
This commit is contained in:
parent
a2423e97eb
commit
bb6468005d
@ -309,6 +309,11 @@ void HttpConnection::respondCommand(QString command)
|
|||||||
torrent.close();
|
torrent.close();
|
||||||
}
|
}
|
||||||
emit torrentReadyToBeDownloaded(filePath, false, QString(), false);
|
emit torrentReadyToBeDownloaded(filePath, false, QString(), false);
|
||||||
|
// Prepare response
|
||||||
|
generator.setStatusLine(200, "OK");
|
||||||
|
generator.setContentTypeByExt("html");
|
||||||
|
generator.setMessage(QString("<script type=\"text/javascript\">window.parent.hideAll();</script>"));
|
||||||
|
write();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(command == "resumeall") {
|
if(command == "resumeall") {
|
||||||
|
@ -12,7 +12,6 @@ function submitForm(form) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
document.uploadForm.submit();
|
document.uploadForm.submit();
|
||||||
window.parent.hideAll();
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user