mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Merge pull request #12498 from vladest/fix_crash_startup
Search main window by checking object name
This commit is contained in:
commit
d60d8fe702
1 changed files with 1 additions and 2 deletions
|
@ -625,8 +625,7 @@ private:
|
|||
auto windows = qApp->topLevelWindows();
|
||||
QWindow* result = nullptr;
|
||||
for (auto window : windows) {
|
||||
QVariant isMainWindow = window->property("MainWindow");
|
||||
if (!qobject_cast<QQuickWindow*>(window)) {
|
||||
if (window->objectName().contains("MainWindow")) {
|
||||
result = window;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue