forked from qt-creator/qt-creator
Plain text editor: Make sure user setting about folding markers is used
It was being reset based on the highlighter definitions. Consider some refactoring with the related options as well to avoid overriding user's settings. Done-with: Thorbjorn Lindeijer
This commit is contained in:
@@ -164,7 +164,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType)
|
||||
baseTextDocument()->setSyntaxHighlighter(highlighter);
|
||||
|
||||
setCodeFoldingSupported(false);
|
||||
setCodeFoldingVisible(false);
|
||||
|
||||
if (!mimeType.isNull()) {
|
||||
m_isMissingSyntaxDefinition = true;
|
||||
@@ -189,7 +188,6 @@ void PlainTextEditor::configure(const Core::MimeType &mimeType)
|
||||
m_commentDefinition.setMultiLineEnd(definition->multiLineCommentEnd());
|
||||
|
||||
setCodeFoldingSupported(true);
|
||||
setCodeFoldingVisible(true);
|
||||
}
|
||||
} else if (file()) {
|
||||
const QString &fileName = file()->fileName();
|
||||
|
||||
Reference in New Issue
Block a user