Removed unused variable.

This commit is contained in:
kasenvr 2020-05-16 16:35:16 -04:00 committed by GitHub
parent e85c50e712
commit 8b410c662e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3186,18 +3186,14 @@ void Application::initializeUi() {
safeURLS += settingsSafeURLS;
// END PULL SAFEURLS FROM INTERFACE.JSON Settings
bool isInWhitelist = false; // assume unsafe
if (AUTHORIZED_EXTERNAL_QML_SOURCE.isParentOf(url)) {
isInWhitelist = true;
return true;
} else {
for (const auto& str : safeURLS) {
if (!str.isEmpty() && str.endsWith(".qml") && url.toString().endsWith(".qml") &&
url.toString().startsWith(str)) {
qCDebug(interfaceapp) << "Found matching url!" << url.host();
isInWhitelist = true;
return true;
}
}