Empty Scan ID Initial check.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <qdebug.h>
|
||||
#include "log/UserOperationLog.h"
|
||||
#include <QLabel>
|
||||
#include "json/jsonobject.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#else
|
||||
@@ -229,6 +230,11 @@ ScanFormWidget::ScanFormWidget(QWidget* parent) : TabFormWidget(parent) {
|
||||
connect(btnScan, &QToolButton::clicked, [=]() {
|
||||
QString patientInf(patient_information->getCurrentPatientJsonString(false));
|
||||
LOG_USER_OPERATION(StartScan);
|
||||
if (!JsonObject::Instance()->getEmptyScanID()){
|
||||
QString msg(tr("No refresh data exists, please do Refresh operation first."));
|
||||
EventCenter::Default()->triggerEvent(GUIEvents::DeviceErrorRaise, nullptr, (QObject*)(&msg));
|
||||
return;
|
||||
}
|
||||
EventCenter::Default()->triggerEvent(GUIEvents::RequestPatientScan, nullptr, (QObject*)(&patientInf));
|
||||
});
|
||||
connect(btnStop, &QToolButton::clicked, [=]() {
|
||||
|
||||
Reference in New Issue
Block a user