Fixed bug caused by crlf member not being reset after reading an unsafe string. Tests are working again.
This commit is contained in:
parent
12df269ae0
commit
3458be07d8
|
|
@ -73,6 +73,7 @@ bool Lexer::readUnsafeString()
|
||||||
else
|
else
|
||||||
emit unsafeString(s);
|
emit unsafeString(s);
|
||||||
|
|
||||||
|
crlf = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,11 +33,12 @@ void Parser::readUnsafeString(const QString & value)
|
||||||
tos().count = value.toInt();
|
tos().count = value.toInt();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Task::Action action = tos().action;
|
||||||
stack.removeLast();
|
stack.removeLast();
|
||||||
|
|
||||||
if(tos().action == Task::ReadStatus)
|
if(action == Task::ReadStatus)
|
||||||
emit status(value);
|
emit status(value);
|
||||||
else if(tos().action == Task::ReadError)
|
else if(action == Task::ReadError)
|
||||||
{
|
{
|
||||||
int pos = value.indexOf(' ');
|
int pos = value.indexOf(' ');
|
||||||
emit error(value.left(pos), value.right(pos + 1));
|
emit error(value.left(pos), value.right(pos + 1));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue