[Bug #1150] Material categories tree is reloaded after adding new elements

FEA: ItEr75S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-09-02 12:43:29 +02:00
parent a8e14b138c
commit 1541c0ee67
2 changed files with 3 additions and 3 deletions

View file

@ -386,10 +386,10 @@ public class MaterialsController extends
private void reloadCategoriesTree(Treeitem treeitem) {
if (treeitem != null) {
final MaterialCategory materialCategory = (MaterialCategory) treeitem.getValue();
Util.reloadBindings(categoriesTree);
categoriesTree.invalidate();
locateAndSelectMaterialCategory(materialCategory);
} else {
Util.reloadBindings(categoriesTree);
categoriesTree.invalidate();
}
}

View file

@ -38,7 +38,7 @@
<vbox id="messagesContainer" />
<groupbox closable="false">
<caption label="${i18n:_('Categories')}" />
<caption label="${i18n:_('Categories')}" />
<hbox>
<textbox id="txtCategory" onOK="materialsController.addMaterialCategory()"
style="padding-bottom: 4px" />