2019-08-26 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that allowed more than one PyPAD
	instance to be selected at a time in the 'List PyPAD Instances'
	dialog.
This commit is contained in:
Fred Gleason
2019-08-27 17:32:24 -04:00
parent f951b60065
commit 533b760cd1
2 changed files with 7 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ ListPypads::ListPypads(RDStation *station,QWidget *parent)
// Instances List Box
//
list_list_view=new RDListView(this);
list_list_view->setSelectionMode(Q3ListView::Single);
list_list_view->setAllColumnsShowFocus(true);
list_list_view->setItemMargin(5);
list_list_view->addColumn(" ");
@@ -198,7 +199,9 @@ void ListPypads::addData()
RDListViewItem *item=new RDListViewItem(list_list_view);
item->setId(id);
RefreshItem(item);
list_list_view->clearSelection();
list_list_view->ensureItemVisible(item);
list_list_view->setCurrentItem(item);
item->setSelected(true);
RDNotification notify=RDNotification(RDNotification::PypadType,
RDNotification::AddAction,id);