diff --git a/novelwriter/guimain.py b/novelwriter/guimain.py index ea01c74e..8e3a1ef5 100644 --- a/novelwriter/guimain.py +++ b/novelwriter/guimain.py @@ -832,11 +832,7 @@ class GuiMain(QMainWindow): SHARED.error(self.tr("Could not initialise the dialog.")) return - # Update the spell check languages menu when the dialog is closed - def onDialogFinished(): - self.mainMenu.updateSpellCheckLanguages() - - dialog.finished.connect(onDialogFinished) + dialog.finished.connect(self.mainMenu.updateSpellCheckLanguages) ## # Main Window Actions