fix: Fix can't waterflood when empty data corrupted.

This commit is contained in:
sunwen
2025-07-17 11:05:09 +08:00
parent b68c932364
commit 6f635c5d1a
2 changed files with 2 additions and 5 deletions

View File

@@ -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)

View File

@@ -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"));
} }