2021-04-16 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that caused the incorrect hostname to
	populate in the 'Name' column after creating a new host entry in
	the 'Rivendell Host List' dialog.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-04-16 10:32:20 -04:00
parent 63fd2c6c28
commit 3887d806b0
2 changed files with 5 additions and 1 deletions

View File

@ -21444,3 +21444,7 @@
new host entries. new host entries.
* Disabled cloning on hotkey data when creating new host entries * Disabled cloning on hotkey data when creating new host entries
in rdadmin(1). in rdadmin(1).
2021-04-16 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that caused the incorrect hostname to
populate in the 'Name' column after creating a new host entry in
the 'Rivendell Host List' dialog.

View File

@ -298,7 +298,7 @@ void RDStationListModel::updateRowLine(int line)
{ {
if(line<d_texts.size()) { if(line<d_texts.size()) {
QString sql=sqlFields()+ QString sql=sqlFields()+
"where NAME=\""+RDEscapeString(d_hostnames.at(0))+"\""; "where NAME=\""+RDEscapeString(d_hostnames.at(line))+"\"";
RDSqlQuery *q=new RDSqlQuery(sql); RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) { if(q->first()) {
updateRow(line,q); updateRow(line,q);