Skip to content

Commit

Permalink
SCSI:Show warning if grown defect list is positive
Browse files Browse the repository at this point in the history
  • Loading branch information
edisionnano committed Aug 19, 2024
1 parent 3ee7128 commit d62d44b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,10 @@ void MainWindow::updateUI()
}
}

if (localObj.value("scsi_grown_defect_list").toInt() != 0) {
int scsiGrownDefectList = localObj.value("scsi_grown_defect_list").toInt();
if (scsiGrownDefectList != 0) {
caution = true;
QMessageBox::warning(nullptr, tr("Warning"), deviceName + ": " + tr("Grown Defect List") + ": " + QString::number(scsiGrownDefectList));
}
} else {
JsonParser parser;
Expand Down

0 comments on commit d62d44b

Please sign in to comment.