From ea6a0943cc1942085c31c45fc95f3379b209abd6 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 8cf94c1aba1. --- 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 f1de06a8fd..ce44ecf614 100644 --- a/src/Gui/OverlayManager.cpp +++ b/src/Gui/OverlayManager.cpp @@ -136,7 +136,7 @@ public: ParameterGrp::handle handle; QString activeStyleSheet; - bool hideTab; + bool hideTab = false; private: QString detectOverlayStyleSheetFileName() const {