707 for (const ModelAction& action : ldraw::makeUnofficial(model)) { |
707 for (const ModelAction& action : ldraw::makeUnofficial(model)) { |
708 executeAction(model, action); |
708 executeAction(model, action); |
709 } |
709 } |
710 } |
710 } |
711 }); |
711 }); |
712 mainWindow.setWindowTitle(title()); |
|
713 mainWindow.tabifyDockWidget(ui.messageLogDock, ui.toolOptionsDock); |
712 mainWindow.tabifyDockWidget(ui.messageLogDock, ui.toolOptionsDock); |
714 mainWindow.restoreGeometry(setting<Setting::MainWindowGeometry>()); |
713 mainWindow.restoreGeometry(setting<Setting::MainWindowGeometry>()); |
715 mainWindow.restoreState(setting<Setting::MainWindowState>()); |
714 mainWindow.restoreState(setting<Setting::MainWindowState>()); |
716 // If a dock is made floating and the app is closed, the dock becomes invisible |
715 // If a dock is made floating and the app is closed, the dock becomes invisible |
717 // after the restoreState call. So we make them visible again here. |
716 // after the restoreState call. So we make them visible again here. |
718 for (QDockWidget* dock : mainWindow.findChildren<QDockWidget*>()) { |
717 for (QDockWidget* dock : mainWindow.findChildren<QDockWidget*>()) { |
719 dock->setVisible(true); |
718 dock->setVisible(true); |
720 } |
719 } |
721 restoreSettings(); |
720 restoreSettings(); |
722 updateRenderPreferences(&ui, &renderPreferences, &documents); |
721 updateRenderPreferences(&ui, &renderPreferences, &documents); |
|
722 mainWindow.setWindowTitle(title()); |
723 mainWindow.show(); |
723 mainWindow.show(); |
724 const int result = app.exec(); |
724 const int result = app.exec(); |
725 saveSettings(); |
725 saveSettings(); |
726 return result; |
726 return result; |
727 } |
727 } |