2023-09-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDPanelButton' that caused the background
	color to fail to be reset when clearing the button.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-09-27 15:08:52 -04:00
parent 901d93aabe
commit 876495ec4d
2 changed files with 3 additions and 6 deletions

View File

@ -24393,3 +24393,6 @@
button in Setup mode would fail to open the 'Edit Button' dialog.
2023-09-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs in 'RDSoundPanel' affecting drag-and-drop operation.
2023-09-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDPanelButton' that caused the background
color to fail to be reset when clearing the button.

View File

@ -127,9 +127,6 @@ QColor RDPanelButton::defaultColor() const
void RDPanelButton::setDefaultColor(QColor color)
{
if(color==button_default_color) {
return;
}
button_default_color=color;
if(playDeck()==NULL) {
setColor(color);
@ -151,9 +148,6 @@ void RDPanelButton::setStartSource(RDLogLine::StartSource src)
void RDPanelButton::setColor(QColor color)
{
if(color==button_color) {
return;
}
button_color=color;
if(button_flash) {
if(color==palette().color(QPalette::Background)) {