[gnome-music/wip/mschraal/artistsview-selection-through-coreobjects: 15/15] artistsview: Fix conditional logic
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/artistsview-selection-through-coreobjects: 15/15] artistsview: Fix conditional logic
- Date: Fri, 4 Feb 2022 16:07:59 +0000 (UTC)
commit e384ac4488a898577cc5a8de927e6f3296502373
Author: Marinus Schraal <mschraal gnome org>
Date: Wed Feb 2 23:49:06 2022 +0100
artistsview: Fix conditional logic
* Use 'is' operator for object comparison
* Use active_view property instead of object parent/child call
gnomemusic/views/artistsview.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index 117bd5a56..16a736b8a 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -185,7 +185,7 @@ class ArtistsView(Gtk.Paned):
:param bool value: Activate selection mode
"""
if (value == self._selection_mode
- or self.get_parent().get_visible_child() != self):
+ or self._window.props.active_view is not self):
return
self._selection_mode = value
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]