source: https://github.com/texstudio-org/texstudio/commit/4cf5c2eb2a8a0353335c0ed6d6be4b3f19c950c3.patch From 4cf5c2eb2a8a0353335c0ed6d6be4b3f19c950c3 Mon Sep 17 00:00:00 2001 From: "sunderme@gmx.de" Date: Wed, 9 May 2018 22:41:16 +0200 Subject: [PATCH] fix messed structureview with qt >=5.10 --- src/latexdocument.cpp | 8 ++++---- src/latexstructure.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) --- src/latexdocument.cpp +++ src/latexdocument.cpp @@ -358,8 +358,8 @@ void LatexDocument::patchStructureRemoval(QDocumentLineHandle *dlh) } } - //emit structureUpdated(this, newSection); - emit setHighlightedEntry(newSection); + emit structureUpdated(this, newSection); + //emit setHighlightedEntry(newSection); if (bibTeXFilesNeedsUpdate) emit updateBibTeXFiles(); @@ -1176,8 +1176,8 @@ bool LatexDocument::patchStructure(int linenr, int count, bool recheck) } } - //emit structureUpdated(this, newSection); - emit setHighlightedEntry(newSection); + emit structureUpdated(this, newSection); + //emit setHighlightedEntry(newSection); } StructureEntry *se; foreach (se, MapOfTodo.values()) --- src/latexstructure.h +++ src/latexstructure.h @@ -114,7 +114,6 @@ bool getSingleDocMode(); void moveDocs(int from, int to); -public slots: void setHighlightedEntry(StructureEntry *entry); private slots: