From 7c45d4f328a16c92608a1747d1e441e8831981fa Mon Sep 17 00:00:00 2001 From: sohamg Date: Thu, 13 Jun 2019 17:56:19 +0530 Subject: [PATCH] Fix #3259 Use QUrl::fromUserInput to parse a url with correct scheme Signed-off-by: sohamg --- src/gui/DatabaseWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 114c168f6..59e6fcf39 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -696,7 +696,7 @@ void DatabaseWidget::openUrlForEntry(Entry* entry) } } } else { - QUrl url = QUrl(entry->url()); + QUrl url = QUrl::fromUserInput(entry->url()); if (!url.isEmpty()) { QDesktopServices::openUrl(url); }