From ff796e08d4db311e0a539ca828d33c47f7b4365b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Fri, 6 Sep 2024 18:21:29 +0200 Subject: [PATCH] OverlayManager: fix unititialized hideTab variable The hideTab is of type bool, which is primitive type and is thus unitialized if new instance of the class is created. The exception would be to for static instance of the class, but that is not the case (only the pointer to the instance is static). It was originaly initialized, but the initialization was removed in 9d5390ed833. --- src/Gui/OverlayManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/OverlayManager.cpp b/src/Gui/OverlayManager.cpp index f1de06a8fdc6..ce44ecf61438 100644 --- a/src/Gui/OverlayManager.cpp +++ b/src/Gui/OverlayManager.cpp @@ -136,7 +136,7 @@ class OverlayStyleSheet: public ParameterGrp::ObserverType { ParameterGrp::handle handle; QString activeStyleSheet; - bool hideTab; + bool hideTab = false; private: QString detectOverlayStyleSheetFileName() const {