From de7556f2ee49adf625d1bb73f6a07afec85ba60b Mon Sep 17 00:00:00 2001 From: billypom on debian Date: Wed, 5 Feb 2025 19:39:29 -0500 Subject: [PATCH] whatever --- components/MusicTable.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/MusicTable.py b/components/MusicTable.py index c075b3e..1941eaf 100644 --- a/components/MusicTable.py +++ b/components/MusicTable.py @@ -272,7 +272,7 @@ class MusicTable(QTableView): lyrics_window.exec_() def delete_songs(self): - """Deletes the currently selected songs from the db and music table (not the filesystem)""" + """Asks to delete the currently selected songs from the db and music table (not the filesystem)""" reply = QMessageBox.question( self, "Confirmation", @@ -438,6 +438,9 @@ class MusicTable(QTableView): """Setup shortcuts here""" shortcut = QShortcut(QKeySequence("Ctrl+Shift+R"), self) shortcut.activated.connect(self.confirm_reorganize_files) + # Delete key? + shortcut = QShortcut(QKeySequence("Delete"), self) + shortcut.activated.connect(self.delete_songs) def on_cell_data_changed(self, topLeft: QModelIndex, bottomRight: QModelIndex): """Handles updating ID3 tags when data changes in a cell"""