[PATCH - rhel6-branch master] Automatically select devices added via the "Add Advanced" button (#579051).

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

 



---
 iw/filter_gui.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index a234dc4..6c92ee1 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -432,7 +432,7 @@ class FilterWindow(InstallWindow):
         mpaths = filter(lambda d: d not in self._cachedMPaths, new_mpaths)
         raids = filter(lambda d: d not in self._cachedRaidDevices, new_raids)
 
-        self.populate(nonraids, mpaths, raids)
+        self.populate(nonraids, mpaths, raids, activeByDefault=True)
 
         # Make sure to update the size label at the bottom.
         self.pages[0].cb.update()
@@ -599,7 +599,7 @@ class FilterWindow(InstallWindow):
 
         return self.vbox
 
-    def populate(self, nonraids, mpaths, raids):
+    def populate(self, nonraids, mpaths, raids, activeByDefault=False):
         def _addTuple(tuple):
             global totalDevices, totalSize
             global selectedDevices, selectedSize
@@ -636,7 +636,7 @@ class FilterWindow(InstallWindow):
             return False
 
         def _active(info):
-            if _isProtected(info):
+            if _isProtected(info) or activeByDefault:
                 return True
 
             name = udev_device_get_name(info)
-- 
1.6.5.1

_______________________________________________
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