Skip to content

Commit

Permalink
Fix #3259 Use QUrl::fromUserInput to parse a url with correct scheme
Browse files Browse the repository at this point in the history
Signed-off-by: sohamg <[email protected]>
  • Loading branch information
SohamG authored and droidmonkey committed Jun 13, 2019
1 parent 3852450 commit 7c45d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/DatabaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7c45d4f

Please sign in to comment.