Re: [PATCH 1/2] Fix visibility counting on filter notebook pages.

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

 



@@ -357,7 +357,16 @@ class NotebookPage(object):
          self.filteredModel.refilter()

      def getNVisible(self):
-        return self.ds.getNVisible()
+        retval = 0
+        iter = self.filteredModel.get_iter_first()
+
+        while iter:
+            if self.cb.visible(self.filteredModel, iter, self.treeView):
+                retval += 1
+
+            iter = self.filteredModel.iter_next(iter)
+
+        return retval

  class FilterWindow(InstallWindow):
      windowTitle = N_("Device Filter")

I can't really see the details, but it looks good to me.

_______________________________________________
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