summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 4209829a..e7226740 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -204,9 +204,9 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
{
QString text = selectedText();
- if (text.startsWith(QLatin1String("http://"))
- || text.startsWith(QLatin1String("https://"))
- || text.startsWith(QLatin1String("www."))
+ if (text.startsWith(QL1S("http://"))
+ || text.startsWith(QL1S("https://"))
+ || text.startsWith(QL1S("www."))
)
{
QString truncatedURL = text;