fix regression in gui when migrating guests

with using suspend/resumeEvents the reselection of vms when migrating,
was not working correctly, fixing this by resuming before selecting

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-06-22 11:24:35 +02:00 committed by Dietmar Maurer
parent 36d7084737
commit 85e09e1bb8

View File

@ -340,6 +340,8 @@ Ext.define('PVE.tree.ResourceTree', {
}
});
store.resumeEvents();
// select parent node is selection vanished
if (lastsel && !rootnode.findChild('id', lastsel.data.id, true)) {
lastsel = rootnode;
@ -360,7 +362,6 @@ Ext.define('PVE.tree.ResourceTree', {
}
pdata.updateCount++;
store.resumeEvents();
store.fireEvent('refresh', store);
};