mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Fix file being passed to --repo
Since #719, you can no longer use a local json file with --repo (At least in Qt 6). A network request to a file:// url has statusCode 0, which caused this check to fail previously.
This commit is contained in:
parent
bee8d3671a
commit
92fd375886
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ void ImageWriter::handleNetworkRequestFinished(QNetworkReply *data) {
|
|||
if (data->error() == QNetworkReply::NoError) {
|
||||
auto httpStatusCode = data->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
|
||||
if (httpStatusCode >= 200 && httpStatusCode < 300) {
|
||||
if (httpStatusCode >= 200 && httpStatusCode < 300 || httpStatusCode == 0) {
|
||||
auto response_object = QJsonDocument::fromJson(data->readAll()).object();
|
||||
|
||||
if (response_object.contains("os_list")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue