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

* Fixed a bug in 'RDSoundPanel' that kept the current panel view
	from being updated when the logged-in user changed.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-10-08 20:44:46 -04:00
parent 7bbfa20381
commit c57fbe2e1d
2 changed files with 4 additions and 9 deletions

View File

@ -24425,3 +24425,6 @@
2023-10-06 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDSoundPanel' that caused updates to
station buttons to fail to be applied.
2023-10-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDSoundPanel' that kept the current panel view
from being updated when the logged-in user changed.

View File

@ -53,7 +53,6 @@ RDSoundPanel::RDSoundPanel(int station_panels,int user_panels,bool flash,
panel_name_tablename="`PANEL_NAMES`";
}
panel_label_template=label_template;
panel_type=RDAirPlayConf::StationPanel;
panel_number=0;
panel_setup_mode=false;
@ -630,11 +629,7 @@ void RDSoundPanel::changeUser()
}
delete q;
panel_selector_box->setCurrentIndex(current_item);
if(!panel_started) {
panelActivatedData(panel_selector_box->currentIndex());
panel_started=true;
}
panelActivatedData(panel_selector_box->currentIndex());
}
@ -953,7 +948,6 @@ void RDSoundPanel::notificationReceivedData(RDNotification *notify)
sql=ButtonSqlFields()+
" where "+
panel_tablename+QString::asprintf(".`ID`=%d",notify->id().toInt());
printf("SQL: %s\n",sql.toUtf8().constData());
q=new RDSqlQuery(sql);
if(q->first()) {
RDAirPlayConf::PanelType ptype=
@ -1336,8 +1330,6 @@ void RDSoundPanel::StopButton(RDPlayDeck *deck)
void RDSoundPanel::UpdatePanels(const QString &username)
{
printf("UpdatePanel(\"%s\")\n",username.toUtf8().constData());
QString owner=username;
RDAirPlayConf::PanelType type=RDAirPlayConf::UserPanel;
int max_panels=panel_user_panels;