Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
697cb0da
Commit
697cb0da
authored
May 20, 2010
by
mae
Browse files
Code folding fix
Remove harmful over optimization (made it impossible to restore nested folding states)
parent
7003b82e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetextdocumentlayout.cpp
View file @
697cb0da
...
...
@@ -493,8 +493,6 @@ void BaseTextDocumentLayout::doFoldOrUnfold(const QTextBlock& block, bool unfold
if
(
!
canFold
(
block
))
return
;
QTextBlock
b
=
block
.
next
();
if
(
b
.
isVisible
()
==
unfold
)
return
;
int
indent
=
foldingIndent
(
block
);
while
(
b
.
isValid
()
&&
foldingIndent
(
b
)
>
indent
&&
b
.
next
().
isValid
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment