mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
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:
@@ -2123,6 +2123,9 @@ void MainWidget::resizeEvent(QResizeEvent *e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWidget::updateControlsGeometry() {
|
void MainWidget::updateControlsGeometry() {
|
||||||
|
if (!width()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateWindowAdaptiveLayout();
|
updateWindowAdaptiveLayout();
|
||||||
if (_dialogs) {
|
if (_dialogs) {
|
||||||
if (Core::App().settings().dialogsWidthRatio() > 0) {
|
if (Core::App().settings().dialogsWidthRatio() > 0) {
|
||||||
|
Reference in New Issue
Block a user