fix: Fix can't waterflood when empty data corrupted.
This commit is contained in:
@@ -1305,7 +1305,8 @@ void DeviceManager::startScanProcess()
|
|||||||
if( !JsonObject::Instance()->getScanCanWithoutRecon() &&
|
if( !JsonObject::Instance()->getScanCanWithoutRecon() &&
|
||||||
(!UsctStateManager::getInstance()->getState(ReconConnectionState) ||
|
(!UsctStateManager::getInstance()->getState(ReconConnectionState) ||
|
||||||
!UsctStateManager::getInstance()->getState(ReconState) ||
|
!UsctStateManager::getInstance()->getState(ReconState) ||
|
||||||
!UsctStateManager::getInstance()->getState(ReconDBState)))
|
!UsctStateManager::getInstance()->getState(ReconDBState) ||
|
||||||
|
!UsctStateManager::getInstance()->getState(ReconEmptyScanState)))
|
||||||
{
|
{
|
||||||
QString errorMessage = tr("Recon error, can't start scan process");
|
QString errorMessage = tr("Recon error, can't start scan process");
|
||||||
LOG_SYS_OPERATION(errorMessage)
|
LOG_SYS_OPERATION(errorMessage)
|
||||||
|
|||||||
@@ -382,10 +382,6 @@ void MainWindow::enableAllTabWidget()
|
|||||||
|
|
||||||
void MainWindow::handleEmptyScanDataCorrupted()
|
void MainWindow::handleEmptyScanDataCorrupted()
|
||||||
{
|
{
|
||||||
mTabWidget->setCurrentIndex(3);
|
|
||||||
mTabWidget->setTabEnabled(2, false);
|
|
||||||
mTabWidget->setTabEnabled(1, false);
|
|
||||||
mTabWidget->setTabEnabled(0, false);
|
|
||||||
EventCenter::Default()->triggerEvent(EmptyScanDataBroked, nullptr, nullptr);
|
EventCenter::Default()->triggerEvent(EmptyScanDataBroked, nullptr, nullptr);
|
||||||
DialogManager::Default()->requestAlertMessage(tr("Due to empty scan data corruption on the server, needs to be execute the empty scan. No other operations can be conducted until the scan is complete."), OkOnly, tr("Warning"));
|
DialogManager::Default()->requestAlertMessage(tr("Due to empty scan data corruption on the server, needs to be execute the empty scan. No other operations can be conducted until the scan is complete."), OkOnly, tr("Warning"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user