Skip to content

Commit

Permalink
fix #655
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Jun 6, 2019
1 parent fef14d5 commit 26e6c75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/urh/ui/ListWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def dragEnterEvent(self, event: QDragEnterEvent):
def eventFilter(self, sender, event):
if event.type() == QEvent.ChildRemoved:
self.internalMove.emit()
elif event.type() == QEvent.KeyPress and (event.key() == Qt.Key_Delete or event.key() == Qt.Key_Backspace):
elif event.type() == QEvent.KeyPress and event.key() in (Qt.Key_Delete, Qt.Key_Backspace)\
and self.currentItem() is not None:
item = self.currentRow()
item_name = self.currentItem().text()
self.active_element_text = item_name
Expand Down

0 comments on commit 26e6c75

Please sign in to comment.