mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +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 );
|
dbID = reply.mid( pos, endPos - pos );
|
||||||
|
|
||||||
// Retrieve database ID
|
// Retrieve database ID
|
||||||
pos = endPos + 1;
|
pos = endPos + 1;
|
||||||
if ( reply[ pos ] == '\"' ) {
|
if ( reply[ pos ] == '\"' ) {
|
||||||
endPos = reply.indexOf( '\"', pos + 1 ) + 1;
|
endPos = reply.indexOf( '\"', pos + 1 ) + 1;
|
||||||
}
|
}
|
||||||
|
@ -855,10 +855,9 @@ void DictServerArticleRequest::readData( QByteArray reply )
|
||||||
qDebug() << "reply data:" << reply << QDateTime::currentDateTime();
|
qDebug() << "reply data:" << reply << QDateTime::currentDateTime();
|
||||||
if ( articleText.contains( ".\r\n" ) ) {
|
if ( articleText.contains( ".\r\n" ) ) {
|
||||||
//discard all left message.
|
//discard all left message.
|
||||||
emit finishedArticle( articleText );
|
emit finishedArticle( articleText );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
reply = dictImpl->socket.readAll();
|
reply = dictImpl->socket.readAll();
|
||||||
|
|
Loading…
Reference in a new issue