Clear 'Old Version History' ListBox before populating it
If the ListBox is not cleared the same entries may be added multiple times e.g. after rebasing a change in the WebUI. Bug: issue 1736 Change-Id: Id8664f1eb6d476bf18138a2577374007c9981452 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -291,6 +291,7 @@ public class ChangeScreen extends Screen
|
||||
neededBy.display(detail.getNeededBy());
|
||||
approvals.display(detail);
|
||||
|
||||
patchesList.clear();
|
||||
if (detail.getCurrentPatchSetDetail().getInfo().getParents().size() > 1) {
|
||||
patchesList.addItem(Util.C.autoMerge());
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user