Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit ae8088d0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Restore title when searching

At the moment the header was empty
parent 47de752f
......@@ -48,7 +48,18 @@ DiscoverPage {
property bool canNavigate: true
readonly property alias subcategories: appsModel.subcategories
title: category ? : ""
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
title: search.length>0 ? i18n("Search: %1", escapeHtml(search))
: category ? : ""
signal clearSearch()
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