From 759b3f5ea5ffe92d1735c3b63056203fb3e43251 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: 24.02.0 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 a441e8fb5..20daefde0 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; }