Skip to content

Commit

Permalink
refactor(browser): s/isUrlExternal/isExternalUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Mar 26, 2019
1 parent 188f867 commit c353ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/libs/browser/webview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void WebView::mouseReleaseEvent(QMouseEvent *event)
return;
}

if (isUrlExternal(clickedLink)) {
if (isExternalUrl(clickedLink)) {
switch (Core::Application::instance()->settings()->externalLinkPolicy) {
case Core::Settings::ExternalLinkPolicy::Open:
break;
Expand Down Expand Up @@ -310,7 +310,7 @@ QWebHitTestResult WebView::hitTestContent(const QPoint &pos) const
return page()->mainFrame()->hitTestContent(pos);
}

bool WebView::isUrlExternal(const QUrl &url)
bool WebView::isExternalUrl(const QUrl &url)
{
static const QStringList localSchemes = {
QStringLiteral("file"),
Expand Down
2 changes: 1 addition & 1 deletion src/libs/browser/webview.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public slots:
private:
QWebHitTestResult hitTestContent(const QPoint &pos) const;

static bool isUrlExternal(const QUrl &url);
static bool isExternalUrl(const QUrl &url);

QMenu *m_contextMenu = nullptr;
QUrl m_clickedLink;
Expand Down

0 comments on commit c353ff2

Please sign in to comment.