[gnome-music/wip/mschraal/core: 83/118] disclistboxwidget: Make selection not crash on activation
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/core: 83/118] disclistboxwidget: Make selection not crash on activation
- Date: Wed, 26 Jun 2019 13:06:59 +0000 (UTC)
commit 53e828de2a55e6cceee0570e6844440caafc4699
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Jun 20 23:32:27 2019 +0200
disclistboxwidget: Make selection not crash on activation
gnomemusic/widgets/disclistboxwidget.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/widgets/disclistboxwidget.py b/gnomemusic/widgets/disclistboxwidget.py
index d711615b..0c4ec8fe 100644
--- a/gnomemusic/widgets/disclistboxwidget.py
+++ b/gnomemusic/widgets/disclistboxwidget.py
@@ -196,15 +196,16 @@ class DiscBox(Gtk.Box):
and not self.props.selection_mode
and self.props.selection_mode_allowed):
self.props.selection_mode = True
+ return
(_, button) = event.get_button()
if (button == Gdk.BUTTON_PRIMARY
and not self.props.selection_mode):
self.emit('song-activated', widget)
- if self.props.selection_mode:
- itr = widget.itr
- self._model[itr][6] = not self._model[itr][6]
+ # FIXME: Need to ignore the event from the checkbox.
+ # if self.props.selection_mode:
+ # widget.props.selected = not widget.props.selected
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]