From 0d47a7d8e8b50fbf0ed6ec8f3a8b95a11c067804 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Mon, 1 Apr 2013 13:36:25 +0300 Subject: bitbake: hob: giving focus to the search field loses the table sorting Giving focus to the search text field should not impact the table sorting. [YOCTO #4113] (Bitbake rev: b5b4b6e4fefa6a164a49b291a0993b1ff63947f4) Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py') diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py index 67d40e09a6..0bd9734f48 100644 --- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py @@ -91,7 +91,7 @@ class PackageListModel(gtk.ListStore): for key in filter.keys(): if key == self.COL_NAME: if filter[key] != 'Search packages by name': - if filter[key] not in name: + if name and filter[key] not in name: return False else: if model.get_value(it, key) not in filter[key]: -- cgit v1.2.3-54-g00ecf