Use the reject slot for dialogs since close is not actually a slot

This commit is contained in:
Veronica Berglyd Olsen
2024-06-10 01:04:10 +02:00
parent 29b61c07b0
commit 811db81a86
6 changed files with 8 additions and 19 deletions
+1 -7
View File
@@ -109,7 +109,7 @@ class GuiDictionaries(NNonBlockingDialog):
# Buttons
self.buttonBox = QDialogButtonBox(QtDialogClose, self)
self.buttonBox.rejected.connect(self._doClose)
self.buttonBox.rejected.connect(self.reject)
# Assemble
self.innerBox = QVBoxLayout()
@@ -220,12 +220,6 @@ class GuiDictionaries(NNonBlockingDialog):
SHARED.error("Path not found.")
return
@pyqtSlot()
def _doClose(self) -> None:
"""Close the dialog."""
self.close()
return
##
# Internal Functions
##