[gnome-music] view: use the path of the filter model in search results
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] view: use the path of the filter model in search results
- Date: Fri, 4 Dec 2015 14:29:11 +0000 (UTC)
commit d094e34392b36281a83741b9db9741a293b0fc63
Author: Stefano Facchini <stefano facchini gmail com>
Date: Fri Dec 4 14:23:30 2015 +0100
view: use the path of the filter model in search results
If 'albums' or 'artists' are missing from search results, the filter model
hides the corresponding rows. In this case, the GtkTreeView path given by
the model is incorrect and need to be converted.
https://bugzilla.gnome.org/show_bug.cgi?id=759024
gnomemusic/view.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 9f9a10b..27e54c9 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -1553,6 +1553,7 @@ class Search(ViewContainer):
if self.model.iter_n_children(self.head_iters[group]) == 1:
path = self.model.get_path(self.head_iters[group])
+ path = self.filter_model.convert_child_path_to_path(path)
self.view.get_generic_view().expand_row(path, False)
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]