Fix json isEmptyData flag bug.
This commit is contained in:
@@ -35,7 +35,7 @@ void ThreadFunc(void* args){
|
||||
status = SCANNING;
|
||||
stop_flag = 0;
|
||||
progress = 0;
|
||||
for (int i = 0; i < 50; ++i) {
|
||||
for (int i = 0; i <= 50; ++i) {
|
||||
if (stop_flag > 0){
|
||||
stop_flag = 0;
|
||||
break;
|
||||
|
||||
@@ -219,7 +219,7 @@ ScanFormWidget::ScanFormWidget(QWidget* parent) : TabFormWidget(parent) {
|
||||
patient_information->setPatientInformation((PatientInformation*)data);
|
||||
});
|
||||
connect(btnRefresh, &QToolButton::clicked, [=]() {
|
||||
QString patientInf(patient_information->getCurrentPatientJsonString(false));
|
||||
QString patientInf(patient_information->getCurrentPatientJsonString(true));
|
||||
LOG_USER_OPERATION(StartRefresh);
|
||||
EventCenter::Default()->triggerEvent(GUIEvents::RequestEmptyScan, nullptr, (QObject*)(&patientInf));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user