Fix linting errors in the main code

This commit is contained in:
Veronica Berglyd Olsen
2025-04-07 17:18:43 +02:00
parent dab48d43a5
commit 8ed3bd889d
66 changed files with 434 additions and 344 deletions
+5 -5
View File
@@ -131,11 +131,11 @@ class GuiDocMerge(NDialog):
@classmethod
def getData(cls, parent: QWidget, handle: str, items: list[str]) -> tuple[dict, bool]:
"""Pop the dialog and return the result."""
cls = GuiDocMerge(parent, handle, items)
cls.exec()
data = cls.data()
accepted = cls.result() == QtAccepted
cls.softDelete()
dialog = cls(parent, handle, items)
dialog.exec()
data = dialog.data()
accepted = dialog.result() == QtAccepted
dialog.softDelete()
return data, accepted
##