[gnome-music/wip/mschraal/playlistcontrols-actions-rework: 3/5] window: Remove broken check
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/playlistcontrols-actions-rework: 3/5] window: Remove broken check
- Date: Fri, 3 Jan 2020 23:59:37 +0000 (UTC)
commit cce82b612296229653c397c958b5e752847cfee7
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]