Some more Adblock shit.
This commit is contained in:
parent
d3e87de27b
commit
28676a4abd
@ -1,4 +1,4 @@
|
||||
<body>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
font-size: 150%;
|
||||
@ -13,6 +13,8 @@
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<center><h2>2.5.0</h2></center>
|
||||
Added:
|
||||
<ul>
|
||||
@ -28,8 +30,13 @@
|
||||
<li><b>Fancy & modern popup notifications</b> (turned on by default).</li>
|
||||
<li>Enhanced information in download manager.</li>
|
||||
<li>Added ability to change font for internal message viewer.</li>
|
||||
<li>Updated URLs of some Adblock subscriptions.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
Fixed:
|
||||
<ul>
|
||||
<li>Adblock subscriptions starting with faulty " [Adblock..."] are now correctly loaded.</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
<center><h2>2.4.2</h2></center>
|
||||
Fixed:
|
||||
|
@ -162,7 +162,12 @@ void AdBlockSubscription::subscriptionDownloaded() {
|
||||
}
|
||||
|
||||
bool error = false;
|
||||
const QByteArray response = QString::fromUtf8(downloader->lastOutputData()).toUtf8();
|
||||
QByteArray response = QString::fromUtf8(downloader->lastOutputData()).toUtf8();
|
||||
|
||||
if (response.startsWith(' ')) {
|
||||
// Deal with " [Adblock".
|
||||
response = response.remove(0, 1);
|
||||
}
|
||||
|
||||
if (downloader->lastOutputError() != QNetworkReply::NoError ||
|
||||
!response.startsWith(QByteArray("[Adblock")) ||
|
||||
@ -208,12 +213,13 @@ bool AdBlockSubscription::saveDownloadedData(const QByteArray &data) {
|
||||
file.write(part2);
|
||||
file.flush();
|
||||
file.close();
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
file.write(data);
|
||||
file.flush();
|
||||
file.close();
|
||||
}
|
||||
|
||||
file.write(data);
|
||||
file.flush();
|
||||
file.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user