From b65fac29aeaceb6bf8bf9df7a852cdd4a8b651c8 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Mon, 29 Jun 2020 22:03:56 +0200 Subject: Adds basic editing for favourite groups --- src/protocols/abouthandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/protocols') diff --git a/src/protocols/abouthandler.cpp b/src/protocols/abouthandler.cpp index 53646d9..5192f0c 100644 --- a/src/protocols/abouthandler.cpp +++ b/src/protocols/abouthandler.cpp @@ -30,7 +30,11 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions for (auto const &fav : kristall::favourites.allFavourites()) { - document.append("=> " + fav->destination.toString().toUtf8() + "\n"); + if(fav->title.isEmpty()) { + document.append("=> " + fav->destination.toString().toUtf8() + "\n"); + } else { + document.append("=> " + fav->destination.toString().toUtf8() + " " + fav->title.toUtf8() + "\n"); + } } this->requestComplete(document, "text/gemini"); -- cgit v1.2.3