[gnome-music/wip/jfelder/window-playlist-deletion: 6/6] window: Remove unnecessary local variable
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/window-playlist-deletion: 6/6] window: Remove unnecessary local variable
- Date: Wed, 24 Feb 2021 19:33:15 +0000 (UTC)
commit ab5c9ea9c9ae0584a2c4efb1220911d067161aa6
Author: Jean Felder <jfelder src gnome org>
Date: Wed Feb 24 20:28:09 2021 +0100
window: Remove unnecessary local variable
gnomemusic/window.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 03da871cc..3b5d13998 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -366,9 +366,8 @@ class Window(Gtk.ApplicationWindow):
if keyval == Gdk.KEY_AudioNext:
self._player.next()
- child = self.props.active_view
if (keyval == Gdk.KEY_Delete
- and child == self.views[View.PLAYLIST]
+ and self.props.active_view == self.views[View.PLAYLIST]
and not self.views[View.PLAYLIST].rename_active):
self.activate_action("playlist_delete", None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]