diff --git a/ChangeLog b/ChangeLog index 1c198949..545930f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24393,3 +24393,6 @@ button in Setup mode would fail to open the 'Edit Button' dialog. 2023-09-27 Fred Gleason * Fixed bugs in 'RDSoundPanel' affecting drag-and-drop operation. +2023-09-27 Fred Gleason + * Fixed a bug in 'RDPanelButton' that caused the background + color to fail to be reset when clearing the button. diff --git a/lib/rdpanel_button.cpp b/lib/rdpanel_button.cpp index 4d0b8126..e173e396 100644 --- a/lib/rdpanel_button.cpp +++ b/lib/rdpanel_button.cpp @@ -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)) {