Delete button is disable if no record selected.
This commit is contained in:
@@ -131,3 +131,12 @@ void IGridForm::on_btnFilter_toggled(bool checked)
|
||||
ui->filterWidget->setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
void IGridForm::on_tableView_clicked(const QModelIndex &index)
|
||||
{
|
||||
if (ui->tableView->currentIndex().isValid())
|
||||
{
|
||||
ui->btnEdit->setEnabled(true);
|
||||
ui->btnDelete->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user