fix: Scan page show the wrong information after empty scan.
This commit is contained in:
@@ -360,8 +360,16 @@ void DeviceManager::processScanProgress(const QString& aProgress)
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
ScanProcessSequence::getInstance()->fullScanDataExport();
|
||||
QVariant var( (mIsEmptyScan ? tr("progress:%1%") : tr("Patient can leave.\nprogress:%1%")).arg(msg));
|
||||
QVariant var;
|
||||
if(mIsEmptyScan)
|
||||
{
|
||||
var = QVariant(tr("progress:%1%").arg(msg));
|
||||
}
|
||||
else
|
||||
{
|
||||
ScanProcessSequence::getInstance()->fullScanDataExport();
|
||||
var = QVariant(tr("Patient can leave.\nprogress:%1%").arg(msg));
|
||||
}
|
||||
TRIGGER_EVENT(InvokeOperationProgress, nullptr, (QObject *) &var);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user