2023-10-06 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in 'RDSoundPanel' that caused the output
	indicator on the buttons to fail to be cleared after events stopped.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-10-06 12:47:32 -04:00
parent a90cb06a97
commit 11140fbfd9
2 changed files with 6 additions and 0 deletions

View File

@ -24419,3 +24419,6 @@
extraneous buttons to appear when resizing the sound panel.
2023-10-06 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SoundPanel Buttons' notification.
2023-10-06 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDSoundPanel' that caused the output
indicator on the buttons to fail to be cleared after events stopped.

View File

@ -1847,11 +1847,14 @@ void RDSoundPanel::ApplyButtonFields(RDPanelButton *button,RDSqlQuery *q)
void RDSoundPanel::UpdateButton(RDPanelButton *button)
{
rda->
syslog(LOG_DEBUG,"updating SoundPanel button - db_id: %d",button->dbId());
QString sql=ButtonSqlFields()+"where "+
panel_tablename+QString::asprintf(".`ID`=%d",button->dbId());
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
button->setOutputText("");
ApplyButtonFields(button,q);
}
delete q;