Keep the selected device count right when going back to filtering (#572882).
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
+ 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:
--
1.6.5.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list