2022-09-11 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdadmin(1) that made it impossible to set
	a 'Startup Cart' button using the 'Select' button.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-09-11 16:03:32 -04:00
parent 0f2c136700
commit d91ea3dae3
3 changed files with 6 additions and 1 deletions

View File

@@ -205,6 +205,8 @@ int RDCartDialog::exec(int *cartnum,RDCart::Type type,const QString &svc,
if(cart_cartnum!=NULL) {
QModelIndex index=cart_cart_model->cartRow(*cart_cartnum);
cart_cart_view->selectRow(index.row());
cart_ok_button->
setEnabled(cart_cart_view->selectionModel()->selectedRows().size()>0);
}
return QDialog::exec();