From af5e8ab95fc6930ac23d9a781651c904ece0d089 Mon Sep 17 00:00:00 2001
From: "alexandr.mruchok" <alexandrmruchok@demlabs.net>
Date: Sat, 29 Feb 2020 15:17:50 +0200
Subject: [PATCH] [*] minor bug fixed

---
 controls/CustomPlacementButton_New.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/controls/CustomPlacementButton_New.cpp b/controls/CustomPlacementButton_New.cpp
index 9fe313a..070b3df 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();
 }
-- 
GitLab