[gnome-music/wip/mschraal/core: 83/177] 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/177] disclistboxwidget: Make selection not crash on activation
- Date: Wed, 3 Jul 2019 18:27:20 +0000 (UTC)
commit 2a6e7cbb3ff6d69eedc2fdcfbf57bec108a55fbb
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]