[gnome-music/wip/jfelder/38-fix-playlist-deletion-delete-key: 1/2] window: Do not try to delete a playlist when renamed
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/38-fix-playlist-deletion-delete-key: 1/2] window: Do not try to delete a playlist when renamed
- Date: Wed, 24 Feb 2021 19:45:02 +0000 (UTC)
commit 0dded5f352671d81318b90cf9f1ae40b0327d82c
Author: Jean Felder <jfelder src gnome org>
Date: Wed Feb 24 20:06:53 2021 +0100
window: Do not try to delete a playlist when renamed
gnomemusic/window.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 3f9b101e8..4e60b6a71 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -368,7 +368,8 @@ class Window(Gtk.ApplicationWindow):
child = self.props.active_view
if (keyval == Gdk.KEY_Delete
- and child == self.views[View.PLAYLIST]):
+ and child == self.views[View.PLAYLIST]
+ and not self.views[View.PLAYLIST].rename_active):
self.views[View.PLAYLIST].remove_playlist()
# Close selection mode or search bar after Esc is pressed
if keyval == Gdk.KEY_Escape:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]