Merge remote-tracking branch 'origin/master' into HEAD

This commit is contained in:
John Preston 2022-06-23 09:43:23 +04:00
commit b90d7ee27a

View file

@ -267,7 +267,11 @@ void DefaultWindowHelper::init() {
bool shown, bool shown,
bool titleShown, bool titleShown,
Qt::WindowStates windowState) { Qt::WindowStates windowState) {
window()->windowHandle()->setFlag(Qt::FramelessWindowHint, titleShown); if (const auto handle = window()->windowHandle()) {
handle->setFlag(Qt::FramelessWindowHint, titleShown);
} else {
window()->setWindowFlag(Qt::FramelessWindowHint, titleShown);
}
updateWindowExtents(); updateWindowExtents();
}, window()->lifetime()); }, window()->lifetime());