mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 15:47:02 +02:00
CR fixes
This commit is contained in:
parent
c05fe7f0b7
commit
c4d43b3fbc
2 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ Windows.Window {
|
|||
Qt.WindowMaximizeButtonHint |
|
||||
Qt.WindowMinimizeButtonHint;
|
||||
// only use the always on top feature for non Windows OS
|
||||
if (Qt.platform.os !== "windows" && (flags & Desktop.ALWAYS_ON_TOP) === Desktop.ALWAYS_ON_TOP) {
|
||||
if (Qt.platform.os !== "windows" && (flags & Desktop.ALWAYS_ON_TOP)) {
|
||||
nativeWindowFlags |= Qt.WindowStaysOnTopHint;
|
||||
}
|
||||
nativeWindow.flags = nativeWindowFlags;
|
||||
|
|
|
@ -43,7 +43,7 @@ MainWindow::~MainWindow() {
|
|||
QWindow* MainWindow::findMainWindow() {
|
||||
auto windows = qApp->topLevelWindows();
|
||||
QWindow* result = nullptr;
|
||||
for (auto window : windows) {
|
||||
for (const auto& window : windows) {
|
||||
if (window->objectName().contains("MainWindow")) {
|
||||
result = window;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue