Fix json isEmptyData flag bug.

This commit is contained in:
Krad
2022-05-26 15:32:25 +08:00
parent 55a579ea50
commit 7822139a76
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ void ThreadFunc(void* args){
status = SCANNING; status = SCANNING;
stop_flag = 0; stop_flag = 0;
progress = 0; progress = 0;
for (int i = 0; i < 50; ++i) { for (int i = 0; i <= 50; ++i) {
if (stop_flag > 0){ if (stop_flag > 0){
stop_flag = 0; stop_flag = 0;
break; break;

View File

@@ -219,7 +219,7 @@ ScanFormWidget::ScanFormWidget(QWidget* parent) : TabFormWidget(parent) {
patient_information->setPatientInformation((PatientInformation*)data); patient_information->setPatientInformation((PatientInformation*)data);
}); });
connect(btnRefresh, &QToolButton::clicked, [=]() { connect(btnRefresh, &QToolButton::clicked, [=]() {
QString patientInf(patient_information->getCurrentPatientJsonString(false)); QString patientInf(patient_information->getCurrentPatientJsonString(true));
LOG_USER_OPERATION(StartRefresh); LOG_USER_OPERATION(StartRefresh);
EventCenter::Default()->triggerEvent(GUIEvents::RequestEmptyScan, nullptr, (QObject*)(&patientInf)); EventCenter::Default()->triggerEvent(GUIEvents::RequestEmptyScan, nullptr, (QObject*)(&patientInf));
}); });