Fix assertion violation in a new window init.

Fixes #24620.

In MainWidget updateControlsGeometry accesses SessionController
and itself through SessionController::content, which is not filled
in the MainWidget constructor yet, so ignore initial updates.
This commit is contained in:
John Preston 2023-01-18 10:25:56 +04:00
parent 7023b013ce
commit dcb1315d53

View file

@ -2123,6 +2123,9 @@ void MainWidget::resizeEvent(QResizeEvent *e) {
}
void MainWidget::updateControlsGeometry() {
if (!width()) {
return;
}
updateWindowAdaptiveLayout();
if (_dialogs) {
if (Core::App().settings().dialogsWidthRatio() > 0) {