2021-08-15 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that caused a newly created Group
	record to fail to get an icon in the Group List.
	* Fixed a bug in rdadmin(1) that could cause a segfault when
	creating a new Service entry.
	* Fixed a bug in rdadmin(1) that could cause a segfault when
	creating a new Schedule Code entry.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-08-15 15:54:51 -04:00
parent b2adad3a32
commit 4e1c92e07c
4 changed files with 10 additions and 3 deletions

View File

@ -22274,3 +22274,10 @@
2021-08-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed regressions in rdlogmanager(1) that caused the 'Color'
setting for Events and Clocks to fail to be saved.
2021-08-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that caused a newly created Group
record to fail to get an icon in the Group List.
* Fixed a bug in rdadmin(1) that could cause a segfault when
creating a new Service entry.
* Fixed a bug in rdadmin(1) that could cause a segfault when
creating a new Schedule Code entry.

View File

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

View File

@ -243,7 +243,7 @@ void RDSchedCodeListModel::updateRowLine(int line)
{
if(line<d_texts.size()) {
QString sql=sqlFields()+
"where `CODE`='"+RDEscapeString(d_texts.at(line).at(line).toString())+"'";
"where `CODE`='"+RDEscapeString(d_texts.at(line).at(0).toString())+"'";
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
updateRow(line,q);

View File

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