Merge pull request #1176 from MihaelaStoica/CAR-2184-CA-218242

CA-218242: Fix crash in Dom0 memory dialog
This commit is contained in:
Konstantina Chremmou 2016-09-20 11:24:41 +01:00 committed by GitHub
commit 6eed113ef3

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