[Pkg-privacy-commits] [tails-installer] 186/210: Don't show the separators when searching the list
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.
commit 506be90ca42f6fb858c6a2a215514394b8855b3f
Author: Martin Briza <mbriza at redhat.com>
Date: Thu Oct 22 16:12:06 2015 +0200
Don't show the separators when searching the list
---
liveusb/gui.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 2791103..420b579 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -695,7 +695,8 @@ class ReleaseListProxy(QSortFilterProxyModel):
row = self.sourceModel().index(sourceRow, 0, sourceParent).data()
if len(self._archFilter) == 0 or row.isLocal or self.archFilter in row.arch:
if len(self._nameFilter) == 0 or self._nameFilter.lower() in row.name.lower() or self._nameFilter.lower() in row.summary.lower():
- return True
+ if not len(self._nameFilter) or not row.isSeparator:
+ return True
return False
@pyqtProperty(str, notify=nameFilterChanged)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list