[gnome-music/wip/mschraal/remove-broken-check-3-34] window: Remove broken check



commit a04b91759c1a94d41644e94ff7b01713a7a0387e
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Jan 4 00:04:32 2020 +0100

    window: Remove broken check
    
    The disable_rename_playlist is not a function of PlaylistsView,
    resulting in a crash.
    There is no actual harm in not disabling the renaming, so remove the
    check completely.

 gnomemusic/window.py | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 40b59407..b6c7525f 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -460,12 +460,6 @@ class Window(Gtk.ApplicationWindow):
         allowed = self.curr_view not in no_selection_mode
         self._headerbar.props.selection_mode_allowed = allowed
 
-        # Disable renaming playlist if it was active when leaving
-        # Playlist view
-        if (self.prev_view == self.views[View.PLAYLIST]
-                and self.views[View.PLAYLIST].rename_active):
-            self.views[View.PLAYLIST].disable_rename_playlist()
-
     @log
     def _toggle_view(self, view_enum):
         # TODO: The SEARCH state actually refers to the child state of


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]