[gnome-music/wip/mschraal/playlistcontrols-actions-rework: 4/12] window: Remove broken check



commit 3d9522cc502691e4fdeffdd50c82bb2374d9a26c
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 a7750a65..05ebab87 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -457,12 +457,6 @@ class Window(Gtk.ApplicationWindow):
         allowed = self._current_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 (previous_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]