From 2974967790e687081c0bdd48a8c0f1f470639ec2 Mon Sep 17 00:00:00 2001 From: Ivan Pelipenko Date: Tue, 4 Aug 2020 17:57:11 +0300 Subject: [PATCH] TouchButtFrame fix --- qad/touch_widgets/touchbuttframe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qad/touch_widgets/touchbuttframe.cpp b/qad/touch_widgets/touchbuttframe.cpp index b03f401..843525a 100644 --- a/qad/touch_widgets/touchbuttframe.cpp +++ b/qad/touch_widgets/touchbuttframe.cpp @@ -51,6 +51,7 @@ void TouchButtFrame::setButtons(const QStringList & captions) { addButton(QString(captions.at(i)).replace("\\n", "\n")); if (button(cur) != 0) button(cur)->setChecked(true); else if (!captions.isEmpty()) button(0)->setChecked(true); + resetColors(); }