mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
3a6a8b8c48
commit
9eaf488c8e
|
@ -820,7 +820,7 @@ void DictServerArticleRequest::readData( QByteArray reply )
|
|||
dbID = reply.mid( pos, endPos - pos );
|
||||
|
||||
// Retrieve database ID
|
||||
pos = endPos + 1;
|
||||
pos = endPos + 1;
|
||||
if ( reply[ pos ] == '\"' ) {
|
||||
endPos = reply.indexOf( '\"', pos + 1 ) + 1;
|
||||
}
|
||||
|
@ -855,10 +855,9 @@ void DictServerArticleRequest::readData( QByteArray reply )
|
|||
qDebug() << "reply data:" << reply << QDateTime::currentDateTime();
|
||||
if ( articleText.contains( ".\r\n" ) ) {
|
||||
//discard all left message.
|
||||
emit finishedArticle( articleText );
|
||||
return;
|
||||
}
|
||||
|
||||
emit finishedArticle( articleText );
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
reply = dictImpl->socket.readAll();
|
||||
|
|
Loading…
Reference in a new issue