Merge pull request #1961 from ogayot/lvm-size-max
storage: fix UI crash when partition size gets capped
This commit is contained in:
commit
6db2ff8113
|
@ -117,8 +117,8 @@ class SizeWidget(StringEditor):
|
|||
)
|
||||
)
|
||||
# This will invoke self.form.clean_size() and it is expected that
|
||||
# size_str (and therefore self.value) are propertly aligned.
|
||||
self.accurate_value = self.form.size
|
||||
# size_str (and therefore self.value) are properly aligned.
|
||||
self.accurate_value = self.form.size.value
|
||||
else:
|
||||
aligned_sz = align_up(sz, self.form.alignment)
|
||||
aligned_sz_str = humanize_size(aligned_sz)
|
||||
|
|
Loading…
Reference in New Issue