mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-29 16:40:51 +08:00
ui: Do not show tooltips for qrc links
This commit is contained in:
@@ -61,8 +61,10 @@ void SearchableWebView::setPage(QWebPage *page)
|
||||
m_webView->setPage(page);
|
||||
|
||||
connect(page, &QWebPage::linkHovered, [&](const QString &link) {
|
||||
if (!link.startsWith(QLatin1String("file:")))
|
||||
setToolTip(link);
|
||||
if (link.startsWith(QLatin1String("file:")) || link.startsWith(QLatin1String("qrc:")))
|
||||
return;
|
||||
|
||||
setToolTip(link);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user