From dad9677bbaf86bf3f4f6f9f68cc041b302b3f8b1 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 14 Jun 2020 12:26:23 +0200 Subject: [PATCH] BaseWindow: Make sure windowTopMost signal is attached to our list of managed connections --- src/widgets/BaseWindow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index a0e0287fe..58df75bbf 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -217,10 +217,12 @@ void BaseWindow::init() // TopMost flag overrides setting if (!this->flags_.has(TopMost)) { - getSettings()->windowTopMost.connect([this](bool topMost, auto) { - this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost); - this->show(); - }); + getSettings()->windowTopMost.connect( + [this](bool topMost, auto) { + this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost); + this->show(); + }, + this->managedConnections_); } #endif }