[gnome-music/wip/jfelder/artistview-fixes: 2/9] baseview: Apply selection mode changes for the visible view only
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/artistview-fixes: 2/9] baseview: Apply selection mode changes for the visible view only
- Date: Tue, 10 Sep 2019 14:19:03 +0000 (UTC)
commit 829d93f918b24ea941b071c8e8761f8307730038
Author: Jean Felder <jfelder src gnome org>
Date: Tue Sep 10 15:19:22 2019 +0200
baseview: Apply selection mode changes for the visible view only
gnomemusic/views/baseview.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/baseview.py b/gnomemusic/views/baseview.py
index f8d62e05..08b9d26f 100644
--- a/gnomemusic/views/baseview.py
+++ b/gnomemusic/views/baseview.py
@@ -80,5 +80,6 @@ class BaseView(Gtk.Stack):
@log
def _on_selection_mode_changed(self, widget, data=None):
- if not self.props.selection_mode:
+ if (self.get_parent().get_visible_child() == self
+ and not self.props.selection_mode):
self.unselect_all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]