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



commit 4053a0ddce4f41cd61242ffa4db1d8807e970bf2
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]