2021-07-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDLogListModel::updateRowLine()' that caused a
	segfault.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-07-27 15:45:25 -04:00
parent 46d07864c0
commit b7b7363d69
2 changed files with 4 additions and 1 deletions

View File

@ -22094,3 +22094,6 @@
* Added type icons to the 'Location' dropdowns in rdcatch(1). * Added type icons to the 'Location' dropdowns in rdcatch(1).
2021-07-27 Fred Gleason <fredg@paravelsystems.com> 2021-07-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed layout errors in the 'Add Log' dialog in 'RDAddLog'. * Fixed layout errors in the 'Add Log' dialog in 'RDAddLog'.
2021-07-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDLogListModel::updateRowLine()' that caused a
segfault.

View File

@ -268,7 +268,7 @@ void RDLogListModel::updateRowLine(int line)
{ {
if(line<d_texts.size()) { if(line<d_texts.size()) {
QString sql=sqlFields()+ 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); RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) { if(q->first()) {
updateRow(line,q); updateRow(line,q);