mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
*! Open bword:// links where word contains slashes correctly.
This commit is contained in:
parent
381c710a7c
commit
15df30337a
|
@ -154,9 +154,9 @@ void ArticleView::openLink( QUrl const & url, QUrl const & ref )
|
|||
printf( "clicked %s\n", url.toString().toLocal8Bit().data() );
|
||||
|
||||
if ( url.scheme() == "bword" )
|
||||
showDefinition( url.host().startsWith( "xn--" ) ?
|
||||
showDefinition( ( url.host().startsWith( "xn--" ) ?
|
||||
QUrl::fromPunycode( url.host().toLatin1() ) :
|
||||
url.host(),
|
||||
url.host() ) + url.path(),
|
||||
getGroup( ref ) );
|
||||
else
|
||||
if ( url.scheme() == "gdlookup" ) // Plain html links inherit gdlookup scheme
|
||||
|
|
Loading…
Reference in a new issue