| commit | 4cfd76d8888d2013c165aa717ded1e2d92d15230 | [log] [tgz] |
|---|---|---|
| author | Edwin Kempin <edwin.kempin@sap.com> | Tue Oct 15 13:18:09 2013 +0200 |
| committer | Edwin Kempin <edwin.kempin@sap.com> | Wed Oct 16 12:47:03 2013 +0200 |
| tree | 32d4c73f7ac7a2e18f195a5a0a4e917fc33e0a60 | |
| parent | 550ba8a8b6f99caf68079d8ea0041197a0130eca [diff] |
Don't display project commands multiple times on save of options On each save of the project options on the ProjectInfoScreen the project commands are added once more to screen so that they are displayed multiple times. Change-Id: I5d9729d7a9870780c550429d841fae14396ef203 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectInfoScreen.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectInfoScreen.java index 7ec0844..f4db4ff 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectInfoScreen.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/ProjectInfoScreen.java
@@ -326,6 +326,9 @@ } private void initProjectActions(ConfigInfo info) { + actionsGrid.clear(true); + actionsGrid.removeAllRows(); + NativeMap<ActionInfo> actions = info.actions(); if (actions == null || actions.isEmpty()) { return;