diff --git a/src/texstudio.cpp b/src/texstudio.cpp index 2b15da369e..37bed6fb07 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -3599,8 +3599,8 @@ void Texstudio::restoreSession(const Session &s, bool showProgress, bool warnMis } } edView->editor->setCursorPosition(line, col, false); - edView->editor->scrollToFirstLine(f.firstLine+1); edView->document->foldLines(f.foldedLines); + edView->editor->scrollToFirstLine(f.firstLine+1); editors->moveToTabGroup(edView, f.editorGroup, -1); } else { missingFiles.append(f.fileName);