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 }