Skip to content

Commit

Permalink
Merge pull request #1260 from xiaoyifang/opt/minor-fixes
Browse files Browse the repository at this point in the history
opt: minor fixes
  • Loading branch information
xiaoyifang authored Oct 28, 2023
2 parents 6e7779b + d2e45e3 commit a1527c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/article_netmgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down
2 changes: 1 addition & 1 deletion src/fulltextsearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void Indexing::run()
QFuture< void > const f = QtConcurrent::run( [ this, &sem, &dictionary ]() {
QSemaphoreReleaser const _( sem );
const QString & dictionaryName = QString::fromUtf8( dictionary->getName().c_str() );
qDebug() << "[FULLTEXT] make fts for the dictionary:" << dictionaryName;
qDebug() << "[FULLTEXT] checking fts for the dictionary:" << dictionaryName;
emit sendNowIndexingName( dictionaryName );
dictionary->makeFTSIndex( isCancelled, false );
} );
Expand Down

0 comments on commit a1527c4

Please sign in to comment.