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:
Mihaela Stoica 2016-09-19 16:11:13 +01:00
parent 755d51be65
commit c86a69e3b9

View File

@ -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);
}