can navigate urls

This commit is contained in:
Martin Rotter 2022-03-26 16:29:59 +01:00
parent cd1f44ba77
commit fe47c2d417
2 changed files with 10 additions and 5 deletions

View file

@ -7,9 +7,10 @@ body:
- type: markdown
attributes:
value: |
Dear RSS Guard contributor, please RESPECT this template. You might be interested in reading [www.chiark.greenend.org.uk](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html).
Also, ALWAYS, ALWAYS, ALWAYS attach DEBUG LOG to your bug report!!!
Dear RSS Guard contributor, ALWAYS, ALWAYS, ALWAYS attach DEBUG LOG to your bug report!!!
How to generate it see [here](https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md#reprt).
Please, RESPECT this template. You might be interested in reading [www.chiark.greenend.org.uk](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html).
- type: textarea
attributes:
label: Brief description of the issue
@ -39,10 +40,10 @@ body:
required: true
- type: textarea
attributes:
label: Other information
description: Write any other supplementary information here.
label: Debug log
description: Paste debug log contents here.
validations:
required: false
required: true
- type: textarea
attributes:
label: Operating system and version

View file

@ -22,6 +22,8 @@ LiteHtmlViewer::LiteHtmlViewer(QWidget* parent) : QLiteHtmlWidget(parent) {
return handleResource(url);
});
connect(this, &LiteHtmlViewer::linkClicked, this, &LiteHtmlViewer::setUrl);
connect(this, &LiteHtmlViewer::copyAvailable, this, [this](bool available) {
if (!available) {
return;
@ -79,6 +81,8 @@ void LiteHtmlViewer::setUrl(const QUrl& url) {
if (qApp->web()->adBlock()->block(block_request).m_blocked) {
qWarningNN << LOGSEC_ADBLOCK << "Blocked request:" << QUOTE_W_SPACE_DOT(block_request.requestUrl().toString());
// TODO: Display "site blocked" error.
return;
}