Raise configuration window (MacOS bug)
## Summary I've added a call to [`dialog->raise()`](https://doc.qt.io/qt-5/qwindow.html#raise) when launching the configuration dialog. This is intended to fix a MacOS bug where the configuration window launches behind other open windows, but this call shouldn't harm operating systems as well. BUG: 416050 ## Test Plan ### Before: Configuration dialog launches behind other open windows on MacOS. ### After: Configuration dialog launches over other open windows on MacOS.
This commit is contained in:
parent
5b314846fe
commit
14543fcba5
1 changed files with 2 additions and 0 deletions
|
@ -83,7 +83,9 @@ int main(int argc, char** argv)
|
||||||
dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect")));
|
dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect")));
|
||||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
dialog->show();
|
dialog->show();
|
||||||
|
dialog->raise();
|
||||||
} else {
|
} else {
|
||||||
|
dialog->raise();
|
||||||
dialog->activateWindow();
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue