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

* Fixed a regression in 'RDLogModel' that threw SQL errors.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-04-27 12:21:26 -04:00
parent 890b488822
commit 05c35a208c
2 changed files with 6 additions and 1 deletions

View File

@ -21629,3 +21629,5 @@
* Added a note on Apache configuration on Ubuntu to 'INSTALL'.
2021-04-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDLog::create()' that threw SQL errors.
2021-04-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDLogModel' that threw SQL errors.

View File

@ -1019,7 +1019,10 @@ int RDLogModel::LoadLines(const QString &logname,int id_offset,bool track_ptrs)
// Load the group color table
//
std::map<QString,QColor> group_colors;
sql="select NAME,COLOR from GROUPS";
sql=QString("select ")+
"`NAME`,"+ // 00
"`COLOR` "+ // 01
"from `GROUPS`";
q=new RDSqlQuery(sql);
while(q->next()) {
group_colors[q->value(0).toString()]=QColor(q->value(1).toString());