mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Merge pull request #153 from xiaoyifang/merge/0922
ignored: Full-text search: Use separate thread pool for search requests Full-text search: Reduce max thread count
This commit is contained in:
commit
c1e85db74f
|
@ -3459,7 +3459,7 @@ static void filterAndCollectResources( QString & html, QRegExp & rx, const QStri
|
|||
{
|
||||
QUrl url( rx.cap( 1 ) );
|
||||
QString host = url.host();
|
||||
QString resourcePath = QString::fromLatin1( QUrl::toPercentEncoding( Utils::Url::path( url ), "/" ) );
|
||||
QString resourcePath = Utils::Url::path( url );
|
||||
|
||||
if ( !host.startsWith( '/' ) )
|
||||
host.insert( 0, '/' );
|
||||
|
@ -3476,6 +3476,7 @@ static void filterAndCollectResources( QString & html, QRegExp & rx, const QStri
|
|||
}
|
||||
|
||||
// Modify original url, set to the native one
|
||||
resourcePath = QString::fromLatin1( QUrl::toPercentEncoding( resourcePath, "/" ) );
|
||||
QString newUrl = sep + QDir( folder ).dirName() + host + resourcePath + sep;
|
||||
html.replace( pos, rx.cap().length(), newUrl );
|
||||
pos += newUrl.length();
|
||||
|
|
Loading…
Reference in a new issue