[gnome-music/wip/mschraal/coredisc-minor-cleanup] coredisc: Remove unneeded assignment
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/coredisc-minor-cleanup] coredisc: Remove unneeded assignment
- Date: Sun, 28 Jul 2019 22:58:26 +0000 (UTC)
commit 52c1949ae9f214d1b3ee12cf3a566b517bbb133e
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Jul 22 21:24:19 2019 +0200
coredisc: Remove unneeded assignment
An unneeded intermediate variable for the main CoreDisc model was used, remove
it.
gnomemusic/coredisc.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/coredisc.py b/gnomemusic/coredisc.py
index 771c9c49..781bf0ea 100644
--- a/gnomemusic/coredisc.py
+++ b/gnomemusic/coredisc.py
@@ -40,7 +40,6 @@ class CoreDisc(GObject.GObject):
self._model = None
self._old_album_ids = []
self._selected = False
- self._sort_model = None
self.update(media)
self.props.disc_nr = nr
@@ -54,12 +53,10 @@ class CoreDisc(GObject.GObject):
self._filter_model = Dazzle.ListModelFilter.new(
self._coremodel.props.songs)
self._filter_model.set_filter_func(lambda a: False)
- self._sort_model = Gfm.SortListModel.new(self._filter_model)
- self._sort_model.set_sort_func(
+ self._model = Gfm.SortListModel.new(self._filter_model)
+ self._model.set_sort_func(
self._wrap_sort_func(self._disc_sort))
- self._model = self._sort_model
-
self._coremodel.props.songs.connect(
"items-changed", self._on_core_changed)
self._model.connect("items-changed", self._on_disc_changed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]