From 2bce10f4c822b5d8921e34f65bc48f49ec03a94a Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Mon, 4 Dec 2023 21:32:20 +0100 Subject: [PATCH] History: Store addresses with custom schemes BUG: 406375 FIXED-IN: 23.08.5 Signed-off-by: Juraj Oravec --- src/lib/history/history.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/history/history.cpp b/src/lib/history/history.cpp index 505169ca5..fae4bdc42 100644 --- a/src/lib/history/history.cpp +++ b/src/lib/history/history.cpp @@ -23,6 +23,7 @@ #include "mainapplication.h" #include "sqldatabase.h" #include "webview.h" +#include "qzsettings.h" #include @@ -74,7 +75,7 @@ void History::addHistoryEntry(const QUrl &url, QString title) QSL("http"), QSL("https"), QSL("ftp"), QSL("file") }; - if (!schemes.contains(url.scheme())) { + if (!schemes.contains(url.scheme()) && !qzSettings->allowedSchemes.contains(url.scheme())) { return; }