work save

This commit is contained in:
royqh1979@gmail.com 2021-11-10 22:00:01 +08:00
parent 3ee49f5cbc
commit e54d734252
1 changed files with 9 additions and 3 deletions

View File

@ -1708,9 +1708,15 @@ QString DebugReader::removeToken(const QString &line)
{
int p=0;
while (p<line.length()) {
char ch=line[p];
QChar ch=line[p];
if (ch<'0' || ch>'9') {
break;
}
p++;
}
if (p<line.length())
return line.mid(p);
return line;
}
bool DebugReader::processExited() const
@ -1819,7 +1825,7 @@ void DebugReader::run()
if ( readed.endsWith("\r\n")&& outputTerminated(buffer)) {
processDebugOutput(QString::fromUtf8(buffer));
processDebugOutput(QString::fromLocal8Bit(buffer));
buffer.clear();
mCmdRunning = false;
runNextCmd();