Fixed a crash that could occur on certain Linux systems when toggling the Always on Top flag. (#3385)
* Get `isVisible` value *before* toggling AlwaysOnTop hint * Add changelog entry
This commit is contained in:
@@ -238,8 +238,9 @@ void BaseWindow::init()
|
||||
{
|
||||
getSettings()->windowTopMost.connect(
|
||||
[this](bool topMost, auto) {
|
||||
auto isVisible = this->isVisible();
|
||||
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
|
||||
if (this->isVisible())
|
||||
if (isVisible)
|
||||
{
|
||||
this->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user