+! Fix handling requests with no link text.

This commit is contained in:
Konstantin Isakov 2009-05-29 20:30:45 +00:00
parent 3161934f64
commit 1dff1384bc

View file

@ -342,9 +342,16 @@ void ArticleView::tryMangleWebsiteClickedUrl( QUrl & url, Contexts & contexts )
QUrl target;
QString queryWord = result.toString();
// Empty requests are treated as no request, so we work this around by
// adding a space.
if ( queryWord.isEmpty() )
queryWord = " ";
target.setScheme( "gdlookup" );
target.setHost( "localhost" );
target.setPath( "/" + result.toString() );
target.setPath( "/" + queryWord );
url = target;
}