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;
|
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];
|
||||||
|
|
Loading…
Reference in New Issue