whatever
This commit is contained in:
parent
5d6c85387d
commit
de7556f2ee
@ -272,7 +272,7 @@ class MusicTable(QTableView):
|
|||||||
lyrics_window.exec_()
|
lyrics_window.exec_()
|
||||||
|
|
||||||
def delete_songs(self):
|
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(
|
reply = QMessageBox.question(
|
||||||
self,
|
self,
|
||||||
"Confirmation",
|
"Confirmation",
|
||||||
@ -438,6 +438,9 @@ class MusicTable(QTableView):
|
|||||||
"""Setup shortcuts here"""
|
"""Setup shortcuts here"""
|
||||||
shortcut = QShortcut(QKeySequence("Ctrl+Shift+R"), self)
|
shortcut = QShortcut(QKeySequence("Ctrl+Shift+R"), self)
|
||||||
shortcut.activated.connect(self.confirm_reorganize_files)
|
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):
|
def on_cell_data_changed(self, topLeft: QModelIndex, bottomRight: QModelIndex):
|
||||||
"""Handles updating ID3 tags when data changes in a cell"""
|
"""Handles updating ID3 tags when data changes in a cell"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user