Commit a8a817a6 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Deprecate AcceptHtmlDownloads property

This property is only set to true in very few
places and the downloadable items do not contain
a HTML page.

And IMO the user should always be prompted in case
there is anything unusual.

The KVHTML files used in KDE-Edu have the mimetype
of normal XML files, consequently we do not
have to worry about those.
parent 51a54d25
......@@ -178,11 +178,15 @@ bool Installation::readConfig(const KConfigGroup &group)
return false;
}
}
acceptHtml = group.readEntry("AcceptHtmlDownloads", false);
if (acceptHtml) {
qWarning(KNEWSTUFFCORE) << "The AcceptHtmlDownload property is deprecated and will default to false. If there"
"is a HTML download link the user will be prompted if the installation should proceed";
}
#endif
installPath = group.readEntry("InstallPath");
absoluteInstallPath = group.readEntry("AbsoluteInstallPath");
acceptHtml = group.readEntry("AcceptHtmlDownloads", false);
if (standardResourceDirectory.isEmpty() &&
targetDirectory.isEmpty() &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment