mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: when path is / only ,there is no need to rearrange the parameters
This commit is contained in:
parent
6e7779bd80
commit
87ae7899ae
|
@ -110,7 +110,7 @@ QNetworkReply * ArticleNetworkAccessManager::getArticleReply( QNetworkRequest co
|
|||
|
||||
if ( req.url().scheme() == "gdlookup" ) {
|
||||
QString path = url.path();
|
||||
if ( !path.isEmpty() ) {
|
||||
if ( path.size()>1 ) {
|
||||
url.setPath( "" );
|
||||
|
||||
Utils::Url::addQueryItem( url, "word", path.mid( 1 ) );
|
||||
|
|
Loading…
Reference in a new issue