[gnome-boxes/downloads-fixups: 4/6] search: Use human-readable OS title to match search results
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/downloads-fixups: 4/6] search: Use human-readable OS title to match search results
- Date: Tue, 13 Nov 2018 14:00:58 +0000 (UTC)
commit be525f1e20649951df8ff72b988dfb28bb3135e5
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Nov 13 11:33:49 2018 +0100
search: Use human-readable OS title to match search results
This way the user can search for Osinfo.Product.name but also OS
variants, architectures, and version.
Fixes #249
src/search.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/search.vala b/src/search.vala
index 57495bc0..dac57970 100644
--- a/src/search.vala
+++ b/src/search.vala
@@ -19,7 +19,7 @@
if (text.length > 0) {
var query = canonicalize_for_search (text);
foreach (var media in media_list) {
- var name = canonicalize_for_search ((media.os as Osinfo.Product).name);
+ var name = canonicalize_for_search (serialize_os_title (media));
if (query in name)
model.append (media);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]