Aard: Minor change in link handling

This commit is contained in:
Abs62 2013-05-22 18:16:57 +04:00
parent 066fb00b4a
commit 57bf62fab0

View file

@ -460,7 +460,7 @@ void AardDictionary::loadArticle( quint32 address,
encodedLink.push_back( *i ); encodedLink.push_back( *i );
prev = false; prev = false;
} }
encodedLink = string( QUrl::toPercentEncoding( QString::fromUtf8( encodedLink.c_str() ) ).data() ); encodedLink = string( QUrl( QString::fromUtf8( encodedLink.data(), encodedLink.size() ) ).toEncoded().data() );
articleText = "<a href=\"" + encodedLink + "\">" + link + "</a>"; articleText = "<a href=\"" + encodedLink + "\">" + link + "</a>";
} }
} }