BaseWindow: Make sure windowTopMost signal is attached to our list of managed connections
This commit is contained in:
@@ -217,10 +217,12 @@ void BaseWindow::init()
|
|||||||
// TopMost flag overrides setting
|
// TopMost flag overrides setting
|
||||||
if (!this->flags_.has(TopMost))
|
if (!this->flags_.has(TopMost))
|
||||||
{
|
{
|
||||||
getSettings()->windowTopMost.connect([this](bool topMost, auto) {
|
getSettings()->windowTopMost.connect(
|
||||||
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
|
[this](bool topMost, auto) {
|
||||||
this->show();
|
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
|
||||||
});
|
this->show();
|
||||||
|
},
|
||||||
|
this->managedConnections_);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user