mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-218242: Fix crash in Dom0 memory dialog
- reset the spinner limits before changing the value Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
755d51be65
commit
c86a69e3b9
@ -92,6 +92,7 @@ namespace XenAdmin.Dialogs
|
||||
max = value;
|
||||
if (value < min)
|
||||
min = value;
|
||||
memorySpinner.SetRange(0, MAXIMUM_DOM0_MEMORY_GB * Util.BINARY_GIGA); // reset spinner limits
|
||||
memorySpinner.Initialize(Messages.CONTROL_DOMAIN_MEMORY_LABEL, null, value, max);
|
||||
memorySpinner.SetRange(min, max);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user