Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/opt/qneptunea/themedownloader.cpp b/opt/qneptunea/themedownloader.cpp
- index 7007cb0..03d7208 100644
- --- a/opt/qneptunea/themedownloader.cpp
- +++ b/opt/qneptunea/themedownloader.cpp
- @@ -149,6 +149,17 @@ void ThemeDownloader::Private::finished()
- return;
- }
- + int httpStatusCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
- + switch (httpStatusCode) {
- + case 301:
- + case 302:
- + q->setRemoteUrl(reply->attribute(QNetworkRequest::RedirectionTargetAttribute).toString());
- + start();
- + return;
- + default:
- + break;
- + }
- +
- QString qmlFile;
- QDir dir(localPath);
- QBuffer buffer;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement