2018-10-24 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdadmin(1) that threw a segfault when the
	'OK' button wash pushed in the 'Configure RDCatch' dialog.
This commit is contained in:
Fred Gleason 2018-10-24 20:18:30 -04:00
parent 4e851eedf3
commit c546bcc0b4
2 changed files with 7 additions and 2 deletions

View File

@ -17902,3 +17902,6 @@
2018-10-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rddbmgr(8) that caused multiple default records
to be created in 'SERVICE_PERMS' when creating a new database.
2018-10-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdadmin(1) that threw a segfault when the
'OK' button wash pushed in the 'Configure RDCatch' dialog.

View File

@ -771,8 +771,10 @@ void EditDecks::WriteRecord(int chan)
int EditDecks::GetMatrix()
{
if(edit_swmatrix_box->currentItem()<(int)edit_matrix_ids.size()) {
return edit_matrix_ids[edit_swmatrix_box->currentItem()];
if(edit_swmatrix_box->currentItem()>=0) {
if(edit_swmatrix_box->currentItem()<(int)edit_matrix_ids.size()) {
return edit_matrix_ids[edit_swmatrix_box->currentItem()];
}
}
return -1;
}