Skip to content

Commit

Permalink
remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Nov 6, 2023
1 parent 1376e43 commit 7bb97a7
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2824,25 +2824,11 @@ void Texstudio::fileOpen()
}
QStringList files = FileDialog::getOpenFileNames(this, tr("Open Files"), currentDir, fileFilters, &selectedFileFilter);

QList<LatexEditorView *>listViews;
foreach (const QString &fn, files)
listViews << load(fn);

// update ref/labels in one go;
QList<LatexDocument *> completedDocs;
foreach (LatexEditorView *edView, listViews) {
if (!edView)
continue;
LatexDocument *docBase = edView->getDocument();
foreach (LatexDocument *doc, docBase->getListOfDocs()) {
doc->recheckRefsLabels();
if (completedDocs.contains(doc))
continue;
doc->updateLtxCommands();
completedDocs << doc->getListOfDocs();
}
}
// update completer
QList<LatexEditorView *>listViews;
foreach (const QString &fn, files)
listViews << load(fn);

// update completer
if (currentEditorView())
updateCompleter(currentEditorView());
}
Expand Down

0 comments on commit 7bb97a7

Please sign in to comment.