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(); }