Entropy/Spritz:

- Package Unmask dialog: make sure to only enable valid treeview elements and filter out garbage like parent categories


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2929 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2009-01-17 17:02:49 +00:00
parent b7d763ec82
commit 955514a672

View File

@@ -5020,8 +5020,8 @@ class MaskedPackagesDialog(MenuSkel):
def enablePackage(self, widget, obj = None, do_refresh = True):
if not obj:
obj = self.get_obj()
if not obj:
return
if not obj: return
if obj.matched_atom == (0,0): return
result = self.Entropy.unmask_match(obj.matched_atom, dry_run = True)
if result:
self.etpbase.unmaskingPackages.add(obj.matched_atom)