minor fix

This commit is contained in:
Roy Qu 2022-10-19 01:23:55 +00:00
parent 4caeeb3a78
commit f0874217b0
2 changed files with 6 additions and 5 deletions

View File

@ -1722,7 +1722,8 @@ void DebugReader::run()
} }
} }
BreakpointModel::BreakpointModel(QObject *parent):QAbstractTableModel(parent) BreakpointModel::BreakpointModel(QObject *parent):QAbstractTableModel(parent),
mIsForProject(false)
{ {
} }

View File

@ -3591,12 +3591,12 @@ void SynEdit::rescanForFoldRanges()
CodeFoldingRanges ranges=mAllFoldRanges; CodeFoldingRanges ranges=mAllFoldRanges;
mAllFoldRanges.clear(); mAllFoldRanges.clear();
// Add folds to a separate list // Add folds to a separate list
PCodeFoldingRanges TemporaryAllFoldRanges = std::make_shared<CodeFoldingRanges>(); PCodeFoldingRanges temporaryAllFoldRanges = std::make_shared<CodeFoldingRanges>();
scanForFoldRanges(TemporaryAllFoldRanges); scanForFoldRanges(temporaryAllFoldRanges);
// Combine new with old folds, preserve parent order // Combine new with old folds, preserve parent order
for (int i = 0; i< TemporaryAllFoldRanges->count();i++) { for (int i = 0; i< temporaryAllFoldRanges->count();i++) {
PCodeFoldingRange tempFoldRange=TemporaryAllFoldRanges->range(i); PCodeFoldingRange tempFoldRange=temporaryAllFoldRanges->range(i);
int j=0; int j=0;
while (j <ranges.count()) { while (j <ranges.count()) {
PCodeFoldingRange foldRange = ranges[j]; PCodeFoldingRange foldRange = ranges[j];