| 60 | } |
| 61 | |
| 62 | void ForcedLoadDialog::on_deleteRowButton_clicked() |
| 63 | { |
| 64 | for (auto rowIndex : ui->tableWidget->selectionModel()->selectedRows()) { |
| 65 | int row = rowIndex.row(); |
| 66 | auto widget = (ForcedLoadDialogWidget*)ui->tableWidget->cellWidget(row, 0); |
| 67 | if (!widget->getForced()) { |
| 68 | ui->tableWidget->removeRow(row); |
| 69 | } |
| 70 | } |
| 71 | } |