[gnome-music/wip/jfelder/window-playlist-deletion: 1/3] 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/window-playlist-deletion: 1/3] window: Do not try to delete a playlist when renamed
- Date: Wed, 24 Feb 2021 19:31:19 +0000 (UTC)
commit bd3b4bcc0cde23861ae7aec99452d911151a4bd6
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]