diff --git a/app/window/mainwindow/mainwindow.cpp b/app/window/mainwindow/mainwindow.cpp index 38f364cb2..1c5f2b111 100644 --- a/app/window/mainwindow/mainwindow.cpp +++ b/app/window/mainwindow/mainwindow.cpp @@ -129,11 +129,15 @@ MainWindowLayoutInfo MainWindow::SaveLayout() const MainWindowLayoutInfo info; foreach (ProjectPanel* panel, folder_panels_) { - info.add_folder(static_cast(panel->get_root_index().internalPointer())); + if (panel->project()) { + info.add_folder(static_cast(panel->get_root_index().internalPointer())); + } } foreach (TimelinePanel* panel, timeline_panels_) { - info.add_sequence(static_cast(panel->GetConnectedViewer()->parent())); + if (panel->GetConnectedViewer()) { + info.add_sequence(static_cast(panel->GetConnectedViewer()->parent())); + } } info.set_state(saveState());