mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
Fix for 192415: Outline view sometimes does not populate
This commit is contained in:
parent
743ad102bb
commit
90c5f04bd5
1 changed files with 2 additions and 3 deletions
|
@ -48,8 +48,7 @@ public class ReconcileWorkingCopyOperation extends CModelOperation {
|
||||||
}
|
}
|
||||||
|
|
||||||
WorkingCopy workingCopy = getWorkingCopy();
|
WorkingCopy workingCopy = getWorkingCopy();
|
||||||
boolean wasOpen= workingCopy.isOpen();
|
boolean wasConsistent = workingCopy.isConsistent();
|
||||||
boolean wasConsistent = wasOpen && workingCopy.isConsistent();
|
|
||||||
CElementDeltaBuilder deltaBuilder = null;
|
CElementDeltaBuilder deltaBuilder = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -64,7 +63,7 @@ public class ReconcileWorkingCopyOperation extends CModelOperation {
|
||||||
|
|
||||||
// register the deltas
|
// register the deltas
|
||||||
if (deltaBuilder.delta != null) {
|
if (deltaBuilder.delta != null) {
|
||||||
if (!wasOpen || deltaBuilder.delta.getAffectedChildren().length > 0) {
|
if (!wasConsistent || forceProblemDetection || deltaBuilder.delta.getAffectedChildren().length > 0) {
|
||||||
addReconcileDelta(workingCopy, deltaBuilder.delta);
|
addReconcileDelta(workingCopy, deltaBuilder.delta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue