summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-24 12:11:59 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-24 15:11:21 -1000
commit85a531e65750e3b35995b4944f97d4455387018b (patch)
treea9db9f73351919de5e7902566d57d221f332f9ed
parent8dc2ccdf97adb9a9b16bf54dd27dd5ad7829d81c (diff)
downloadanaconda-85a531e65750e3b35995b4944f97d4455387018b.tar.gz
anaconda-85a531e65750e3b35995b4944f97d4455387018b.tar.xz
anaconda-85a531e65750e3b35995b4944f97d4455387018b.zip
Do not flag every existing partition for resize (#491803)
Check the resizable property as well as targetSize not being zero (indicates no new targetSize has been set) and finally compare targetSize to currentSize.
-rw-r--r--iw/partition_ui_helpers_gui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 4c273f2c2..9d7f7c556 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -349,7 +349,9 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
if origrequest.resizable:
resizecb = gtk.CheckButton(label=_("_Resize"))
- resizecb.set_active(origrequest.targetSize != origrequest.currentSize)
+ resizecb.set_active(origrequest.resizable and \
+ ((origrequest.targetSize != 0) and \
+ (origrequest.targetSize != origrequest.currentSize)))
rc["resizecb"] = resizecb
maintable.attach(resizecb, 0, 1, row, row + 1)