Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix restored room layout sizing

Rodney9781c735e5d9
diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp
index 5dc922b52..39029aaf1 100644
--- a/toonz/sources/toonz/mainwindow.cpp
+++ b/toonz/sources/toonz/mainwindow.cpp
@@ -441,7 +441,7 @@ void Room::showEvent(QShowEvent *event) {
DockLayout::State savedState = m_pendingLayoutState;
DockLayout *layout = dockLayout();
QTimer::singleShot(0, this, [layout, savedState]() {
- layout->restoreState(savedState);
+ if (layout->restoreState(savedState)) layout->redistribute();
});
}
}