mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Prevent opening local files if web page is expected
This commit is contained in:
parent
71af105a89
commit
d379fa3035
3 changed files with 16 additions and 16 deletions
|
@ -441,8 +441,8 @@ void RSSWidget::openSelectedArticlesUrls()
|
|||
// Mark as read
|
||||
article->markAsRead();
|
||||
|
||||
if (!article->link().isEmpty())
|
||||
QDesktopServices::openUrl(QUrl(article->link()));
|
||||
if (const QUrl articleLink {article->link()}; !articleLink.isEmpty() && !articleLink.isLocalFile())
|
||||
QDesktopServices::openUrl(articleLink);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue