From 57b699a270ad689aa3f521a3118b6c5cf29f3343 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sun, 28 Oct 2018 17:43:05 -0400 Subject: [PATCH] 2018-10-28 Fred Gleason * Fixed a regression that caused the bankground of blank Sound Panel buttons to be black. --- ChangeLog | 3 +++ lib/rdpanel_button.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a348ac52..e6e21478 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17924,3 +17924,6 @@ * Fixed a regression in rdairplay(1) that caused the application to be closed even if an incorrect response was entered in the 'Enter Password' dialog. +2018-10-28 Fred Gleason + * Fixed a regression that caused the bankground of blank Sound Panel + buttons to be black. diff --git a/lib/rdpanel_button.cpp b/lib/rdpanel_button.cpp index 2bca6e51..6e3d9e21 100644 --- a/lib/rdpanel_button.cpp +++ b/lib/rdpanel_button.cpp @@ -23,7 +23,6 @@ #include #include -//Added by qt3to4: #include #include #include @@ -52,8 +51,8 @@ void RDPanelButton::clear() { setText(""); setOutputText(""); - setDefaultColor(button_parent->backgroundColor()); - setColor(button_parent->backgroundColor()); + button_color=Qt::lightGray; + button_default_color=Qt::lightGray; setCart(0); button_deck=-1; button_output=-1; @@ -492,6 +491,7 @@ void RDPanelButton::WriteKeycap(int secs) setPixmap(*pix); delete p; delete pix; + update(); }