BaseWindow: Make sure windowTopMost signal is attached to our list of managed connections

This commit is contained in:
Rasmus Karlsson 2020-06-14 12:26:23 +02:00
parent 78dab081d8
commit dad9677bba

View file

@ -217,10 +217,12 @@ void BaseWindow::init()
// TopMost flag overrides setting
if (!this->flags_.has(TopMost))
{
getSettings()->windowTopMost.connect([this](bool topMost, auto) {
getSettings()->windowTopMost.connect(
[this](bool topMost, auto) {
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
this->show();
});
},
this->managedConnections_);
}
#endif
}