This commit is contained in:
parent
36d747bb8e
commit
09e434af1b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue