Skip to content

Commit

Permalink
Hotfix again
Browse files Browse the repository at this point in the history
  • Loading branch information
p-yukusai authored Jan 20, 2024
2 parents c252bf0 + f73a9d5 commit 14f06e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ctrl/ExportParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -1326,8 +1326,11 @@ class Exporter {

mProcess->connect(process, &QProcess::readyRead, [=] {
if (this->mProcess) {
if(export_obj.log.isEmpty()) { export_obj.log.append("-Ready read-"); }
if(export_obj.errorLog.isEmpty()) { export_obj.errorLog.append("-Ready read-"); }
if(export_obj.writeLog.isEmpty()) { export_obj.writeLog.append("-Ready read-"); }
export_obj.log.push_back(QString(this->mProcess->readAll().data()));
QString logs = export_obj.log.last();
QStringList logs = {export_obj.log.last(), export_obj.writeLog.last(), export_obj.errorLog.last()};
bool containsErrors = (logs.contains("error", Qt::CaseInsensitive)
|| logs.contains("conversion failed", Qt::CaseInsensitive)
|| logs.contains("invalid", Qt::CaseInsensitive)
Expand Down Expand Up @@ -1364,9 +1367,11 @@ class Exporter {
export_obj.procWaitTick = 0;
}
}
if(export_obj.log.isEmpty()) { export_obj.log.append("-Ready Write-"); }
if(export_obj.writeLog.isEmpty()) { export_obj.writeLog.append("-Ready Write-"); }
export_obj.writeLog.push_back(QString(this->mProcess->readAll().data()));
QString lastLog = export_obj.log.last();
QString lastWriteLog = export_obj.log.last();
QString lastWriteLog = export_obj.writeLog.last();
if(lastLog == export_obj.latestLog && lastWriteLog == export_obj.latestWriteLog) {
export_obj.procWaitTick += 1;
}
Expand Down

0 comments on commit 14f06e1

Please sign in to comment.