Re: [PATCH] Keep the selected device count right when going back to filtering (#572882).

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

 



Ack.

On 03/15/2010 05:55 PM, Chris Lumens wrote:
This avoids the silly situation of having anaconda tell you that you have -1
devices selected.
---
  iw/filter_gui.py |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index f2eff4e..f29b4af 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -596,6 +596,7 @@ class FilterWindow(InstallWindow):
      def populate(self, nonraids, mpaths, raids):
          def _addTuple(tuple):
              global totalDevices, totalSize
+            global selectedDevices, selectedSize
              added = False

              self.store.append(None, tuple)
@@ -613,6 +614,10 @@ class FilterWindow(InstallWindow):
                  totalDevices += 1
                  totalSize += tuple[0]["XXX_SIZE"]

+                if tuple[2]:
+                    selectedDevices += 1
+                    selectedSize += tuple[0]["XXX_SIZE"]
+
          def _active(name):
              if self.anaconda.storage.exclusiveDisks and \
                 name in self.anaconda.storage.exclusiveDisks:

_______________________________________________
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