mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +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() {
|
||||
if (!width()) {
|
||||
return;
|
||||
}
|
||||
updateWindowAdaptiveLayout();
|
||||
if (_dialogs) {
|
||||
if (Core::App().settings().dialogsWidthRatio() > 0) {
|
||||
|
Reference in New Issue
Block a user