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:
|
case 2:
|
||||||
{
|
{
|
||||||
ScanProcessSequence::getInstance()->fullScanDataExport();
|
QVariant var;
|
||||||
QVariant var( (mIsEmptyScan ? tr("progress:%1%") : tr("Patient can leave.\nprogress:%1%")).arg(msg));
|
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);
|
TRIGGER_EVENT(InvokeOperationProgress, nullptr, (QObject *) &var);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user