diff --git a/controls/CustomPlacementButton_New.cpp b/controls/CustomPlacementButton_New.cpp index 9fe313ad30d0f1347c8912495257298abb2106fe..070b3df4722f89b2b6ca0041b46c203817749f1d 100644 --- a/controls/CustomPlacementButton_New.cpp +++ b/controls/CustomPlacementButton_New.cpp @@ -171,5 +171,7 @@ void CustomPlacementButton_New::setWidgetState(QWidget *a_widget, bool a_isHover void CustomPlacementButton_New::setObjectName(const QString &name) { QPushButton::setObjectName(name); - m_styledShadow->updateStyleProperties(); + + if (m_styledShadow) + m_styledShadow->updateStyleProperties(); }