From 57bf62fab03757a1c69ef0f521d9c5849b5615b3 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Wed, 22 May 2013 18:16:57 +0400 Subject: [PATCH] Aard: Minor change in link handling --- aard.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aard.cc b/aard.cc index d34a556b..2505aeaa 100644 --- a/aard.cc +++ b/aard.cc @@ -460,7 +460,7 @@ void AardDictionary::loadArticle( quint32 address, encodedLink.push_back( *i ); prev = false; } - encodedLink = string( QUrl::toPercentEncoding( QString::fromUtf8( encodedLink.c_str() ) ).data() ); + encodedLink = string( QUrl( QString::fromUtf8( encodedLink.data(), encodedLink.size() ) ).toEncoded().data() ); articleText = "" + link + ""; } }