FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-15-2010, 03:55 PM
Chris Lumens
 
Default 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

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:
--
1.6.5.1

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

Thread Tools




All times are GMT. The time now is 12:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org