diff --git a/picard/ui/widgets/editablelistview.py b/picard/ui/widgets/editablelistview.py index 87b08635ea..342ed9ffaa 100644 --- a/picard/ui/widgets/editablelistview.py +++ b/picard/ui/widgets/editablelistview.py @@ -84,7 +84,7 @@ def items(self): def add_empty_row(self): # Setting the focus causes any open editor to getting closed - self.setFocus(True) + self.setFocus(QtCore.Qt.FocusReason.OtherFocusReason) index = self.add_item() self.setCurrentIndex(index) self.edit(index)