summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-11-03 04:35:44 +0000
committerJeremy Katz <katzj@redhat.com>2003-11-03 04:35:44 +0000
commit414d63170d9f5cf390ac8b5ef8677164c6710c34 (patch)
treee60deaca924cd148120b56a941a31c72cca39ab3 /iw
parent5422d485c83b1fbfd2f9dbc628d55e5a4c48bfa2 (diff)
downloadanaconda-414d63170d9f5cf390ac8b5ef8677164c6710c34.tar.gz
anaconda-414d63170d9f5cf390ac8b5ef8677164c6710c34.tar.xz
anaconda-414d63170d9f5cf390ac8b5ef8677164c6710c34.zip
clamp the bottom end of partition sizes (#108164)
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_dialog_gui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 1acc4970f..b8c26bb9c 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -31,6 +31,9 @@ class PartitionEditor:
def sizespinchangedCB(self, widget, fillmaxszsb):
size = widget.get_value_as_int()
maxsize = fillmaxszsb.get_value_as_int()
+ if size < 1:
+ widget.set_value(1)
+ size = 1
if size > maxsize:
fillmaxszsb.set_value(size)