Fix a crash while updating window extents
This commit is contained in:
parent
3dbf58c45f
commit
c499a437f8
1 changed files with 1 additions and 1 deletions
|
|
@ -262,10 +262,10 @@ void DefaultWindowHelper::init() {
|
|||
Qt::WindowStates windowState) {
|
||||
if (const auto handle = window()->windowHandle()) {
|
||||
handle->setFlag(Qt::FramelessWindowHint, titleShown);
|
||||
updateWindowExtents();
|
||||
} else {
|
||||
window()->setWindowFlag(Qt::FramelessWindowHint, titleShown);
|
||||
}
|
||||
updateWindowExtents();
|
||||
}, window()->lifetime());
|
||||
|
||||
window()->events() | rpl::start_with_next([=](not_null<QEvent*> e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue