[gnome-music/wip/jfelder/selection-misc-cleanups: 6/20] songsview: Prevent selection changes if the view is not visible
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/selection-misc-cleanups: 6/20] songsview: Prevent selection changes if the view is not visible
- Date: Tue, 14 Jan 2020 14:52:18 +0000 (UTC)
commit b5e86fb8693a7c4659f237164f38dcf426384817
Author: Jean Felder <jfelder src gnome org>
Date: Fri Jan 10 13:23:02 2020 +0100
songsview: Prevent selection changes if the view is not visible
A user can only select songs if the view is visible.
gnomemusic/views/songsview.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/songsview.py b/gnomemusic/views/songsview.py
index a786cdd9..30549131 100644
--- a/gnomemusic/views/songsview.py
+++ b/gnomemusic/views/songsview.py
@@ -156,7 +156,8 @@ class SongsView(BaseView):
@log
def _on_selection_mode_changed(self, widget, data=None):
selection_mode = self._window.props.selection_mode
- if selection_mode == self.props.selection_mode:
+ if (selection_mode == self.props.selection_mode
+ or self.get_parent().get_visible_child() != self):
return
super()._on_selection_mode_changed(widget, data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]