[gnome-music] window: Don't directly get the model in child stacks
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] window: Don't directly get the model in child stacks
- Date: Mon, 12 May 2014 08:49:19 +0000 (UTC)
commit 647d1efb43f65cf0754827cc0527c87d36b86e16
Author: Arnel Borja <arnelborja src gnome org>
Date: Thu May 8 23:03:30 2014 +0800
window: Don't directly get the model in child stacks
gnomemusic/window.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 0b9762b..0bcf881 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -271,7 +271,7 @@ class Window(Gtk.ApplicationWindow):
if self.toolbar._state == ToolbarState.MAIN:
model = self._stack.get_visible_child()._model
else:
- model = self._stack.get_visible_child()._albumWidget.model
+ model = self._stack.get_visible_child().get_visible_child().model
count = self._set_selection(model, True)
if count > 0:
self.toolbar._selection_menu_label.set_text(
@@ -287,7 +287,7 @@ class Window(Gtk.ApplicationWindow):
if self.toolbar._state == ToolbarState.MAIN:
model = self._stack.get_visible_child()._model
else:
- model = self._stack.get_visible_child()._albumWidget.model
+ model = self._stack.get_visible_child().get_visible_child().model
self._set_selection(model, False)
self.selection_toolbar._add_to_playlist_button.set_sensitive(False)
self.selection_toolbar._remove_from_playlist_button.set_sensitive(False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]