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 - type: markdown
attributes: attributes:
value: | 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). Dear RSS Guard contributor, ALWAYS, ALWAYS, ALWAYS attach DEBUG LOG to your bug report!!!
Also, 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). 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 - type: textarea
attributes: attributes:
label: Brief description of the issue label: Brief description of the issue
@ -39,10 +40,10 @@ body:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
label: Other information label: Debug log
description: Write any other supplementary information here. description: Paste debug log contents here.
validations: validations:
required: false required: true
- type: textarea - type: textarea
attributes: attributes:
label: Operating system and version label: Operating system and version

View file

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