This commit is contained in:
yangjiaxuan 2023-09-04 11:49:05 +08:00
parent 36d747bb8e
commit 09e434af1b
1 changed files with 16 additions and 1 deletions

View File

@ -655,7 +655,22 @@ void Form_BurnMode::on_pbtn_complete_clicked()
void Form_BurnMode::on_pbtn_abnormal_clicked() void Form_BurnMode::on_pbtn_abnormal_clicked()
{ {
Dialog_ExcepDesc dlg; int select = 0;
for(int i = 0; i < ui->tableWidget->rowCount(); i++)
{
QTableWidgetItem *item = ui->tableWidget->item(i, 1);
if (item != nullptr && Qt::Checked == item->checkState())
{
select++;
}
}
if (select == 0)
{
QMessageBox::information(this, tr("tips"), tr("Please check a devices at least"));
return;
}
Dialog_ExcepDesc dlg(this);
if (dlg.exec()) if (dlg.exec())
{ {
QString str = dlg.getExcepDesc(); QString str = dlg.getExcepDesc();