1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

History: Store addresses with custom schemes

BUG: 406375
FIXED-IN: 24.02.0

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-12-04 21:32:20 +01:00
parent 63bf4a5cce
commit 759b3f5ea5
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -23,6 +23,7 @@
#include "mainapplication.h" #include "mainapplication.h"
#include "sqldatabase.h" #include "sqldatabase.h"
#include "webview.h" #include "webview.h"
#include "qzsettings.h"
#include <QWebEngineProfile> #include <QWebEngineProfile>
@ -74,7 +75,7 @@ void History::addHistoryEntry(const QUrl &url, QString title)
QSL("http"), QSL("https"), QSL("ftp"), QSL("file") QSL("http"), QSL("https"), QSL("ftp"), QSL("file")
}; };
if (!schemes.contains(url.scheme())) { if (!schemes.contains(url.scheme()) && !qzSettings->allowedSchemes.contains(url.scheme())) {
return; return;
} }