From 2170794d9ca82ae67a3c00b761847f8d3b38cb23 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 16 Jul 2015 19:52:34 +0200 Subject: [PATCH] Guess the scheme when opening URLs. Closes #293 --- src/gui/DatabaseWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 0c4167c6..55a70b7a 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -464,9 +464,9 @@ void DatabaseWidget::openUrlForEntry(Entry* entry) } } else { - QDesktopServices::openUrl(urlString); + QUrl url = QUrl::fromUserInput(urlString); + QDesktopServices::openUrl(url); } - } void DatabaseWidget::createGroup()