From fcac3b813793d5b3a01afd70a7b577fed2d5d848 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Fri, 19 Aug 2016 18:12:25 +0200 Subject: [PATCH] Fix making a CInfoArea window visible during construction refs #738 --- src/blackgui/infoarea.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/blackgui/infoarea.cpp b/src/blackgui/infoarea.cpp index e630ed865..70de14065 100644 --- a/src/blackgui/infoarea.cpp +++ b/src/blackgui/infoarea.cpp @@ -480,7 +480,12 @@ namespace BlackGui // this->setParent(this->m_originalParent, this->windowFlags() & ~Qt::Window); this->setWindowFlags(this->windowFlags() & ~Qt::Window); - this->setVisible(true); // after redocking this is required + + // RW: The line below is commented to prevent making this widget visible as a top window + // in case it is constructed without parent or anchestor widget. Contrary to the comment, + // it does not seem to be necessary. + // https://dev.vatsim-germany.org/issues/738 + //this->setVisible(true); // after redocking this is required } emit changedWholeInfoAreaFloating(floating);