[anaconda-storage-branch PATCH 4/5] Do not flag every existing partition for resize (#491803)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check the resizable property as well as targetSize not being zero
(indicates no new targetSize has been set) and finally compare
targetSize to currentSize.
---
 iw/partition_ui_helpers_gui.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index 4c273f2..9d7f7c5 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)
 
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux