work save
This commit is contained in:
parent
3ee49f5cbc
commit
e54d734252
|
@ -1708,9 +1708,15 @@ QString DebugReader::removeToken(const QString &line)
|
||||||
{
|
{
|
||||||
int p=0;
|
int p=0;
|
||||||
while (p<line.length()) {
|
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
|
bool DebugReader::processExited() const
|
||||||
|
@ -1819,7 +1825,7 @@ void DebugReader::run()
|
||||||
|
|
||||||
|
|
||||||
if ( readed.endsWith("\r\n")&& outputTerminated(buffer)) {
|
if ( readed.endsWith("\r\n")&& outputTerminated(buffer)) {
|
||||||
processDebugOutput(QString::fromUtf8(buffer));
|
processDebugOutput(QString::fromLocal8Bit(buffer));
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
mCmdRunning = false;
|
mCmdRunning = false;
|
||||||
runNextCmd();
|
runNextCmd();
|
||||||
|
|
Loading…
Reference in New Issue