PICARD-1754: Removed QKeySequence.Delete shortcut for remove action

This reverts 84d8341. QKeySequence.Delete is still used for item removal on the itemview and metadatabox panes (see MainWindow.keyPressEvent). But if this action is registered globally item removal interfers with removing elements from MetadataBox.
This commit is contained in:
Philipp Wolfer
2020-02-20 15:47:03 +01:00
parent 12f1452c96
commit 3ffa21eb08

View File

@@ -440,7 +440,6 @@ class MainWindow(QtWidgets.QMainWindow, PreserveGeometry):
self.remove_action = QtWidgets.QAction(icontheme.lookup('list-remove'), _("&Remove"), self)
self.remove_action.setStatusTip(_("Remove selected files/albums"))
self.remove_action.setShortcut(QtGui.QKeySequence.Delete)
self.remove_action.setEnabled(False)
self.remove_action.triggered.connect(self.remove)