Make sure all QMenu instances have a parent widget set (#1536)

This commit is contained in:
Veronica Berglyd Olsen
2023-11-04 17:24:43 +01:00
parent ef29571bd9
commit 8abcada86e
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -720,7 +720,7 @@ class _HeadingsTab(QWidget):
self.formSyntax = _HeadingSyntaxHighlighter(self.editTextBox.document())
self.menuInsert = QMenu()
self.menuInsert = QMenu(self)
self.aInsTitle = self.menuInsert.addAction(self.tr("Title"))
self.aInsChNum = self.menuInsert.addAction(self.tr("Chapter Number"))
self.aInsChWord = self.menuInsert.addAction(self.tr("Chapter Number (Word)"))