minor fix
This commit is contained in:
parent
4caeeb3a78
commit
f0874217b0
|
@ -1722,7 +1722,8 @@ void DebugReader::run()
|
|||
}
|
||||
}
|
||||
|
||||
BreakpointModel::BreakpointModel(QObject *parent):QAbstractTableModel(parent)
|
||||
BreakpointModel::BreakpointModel(QObject *parent):QAbstractTableModel(parent),
|
||||
mIsForProject(false)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -3591,12 +3591,12 @@ void SynEdit::rescanForFoldRanges()
|
|||
CodeFoldingRanges ranges=mAllFoldRanges;
|
||||
mAllFoldRanges.clear();
|
||||
// Add folds to a separate list
|
||||
PCodeFoldingRanges TemporaryAllFoldRanges = std::make_shared<CodeFoldingRanges>();
|
||||
scanForFoldRanges(TemporaryAllFoldRanges);
|
||||
PCodeFoldingRanges temporaryAllFoldRanges = std::make_shared<CodeFoldingRanges>();
|
||||
scanForFoldRanges(temporaryAllFoldRanges);
|
||||
|
||||
// Combine new with old folds, preserve parent order
|
||||
for (int i = 0; i< TemporaryAllFoldRanges->count();i++) {
|
||||
PCodeFoldingRange tempFoldRange=TemporaryAllFoldRanges->range(i);
|
||||
for (int i = 0; i< temporaryAllFoldRanges->count();i++) {
|
||||
PCodeFoldingRange tempFoldRange=temporaryAllFoldRanges->range(i);
|
||||
int j=0;
|
||||
while (j <ranges.count()) {
|
||||
PCodeFoldingRange foldRange = ranges[j];
|
||||
|
|
Loading…
Reference in New Issue