properly reset editsession limit
This commit is contained in:
parent
4044e8772d
commit
84d7da3274
@ -361,7 +361,11 @@ public class EditSession extends AbstractWorld implements HasFaweQueue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void resetLimit() {
|
public void resetLimit() {
|
||||||
this.limit = this.originalLimit.copy();
|
this.limit.set(this.originalLimit);
|
||||||
|
ExtentTraverser<ProcessedWEExtent> find = new ExtentTraverser(extent).find(ProcessedWEExtent.class);
|
||||||
|
if (find != null && find.get() != null) {
|
||||||
|
find.get().setLimit(this.limit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1236,7 +1240,7 @@ public class EditSession extends AbstractWorld implements HasFaweQueue {
|
|||||||
// Reset limit
|
// Reset limit
|
||||||
limit.set(originalLimit);
|
limit.set(originalLimit);
|
||||||
// Enqueue it
|
// Enqueue it
|
||||||
if (queue == null || queue.size() == 0) {
|
if (queue == null || queue.isEmpty()) {
|
||||||
queue.dequeue();
|
queue.dequeue();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1251,7 +1255,6 @@ public class EditSession extends AbstractWorld implements HasFaweQueue {
|
|||||||
} else {
|
} else {
|
||||||
((FaweChangeSet) getChangeSet()).flush();
|
((FaweChangeSet) getChangeSet()).flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user