Commit ccddb740 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch '248_fix_button_menu_lifetime' into 'v2'

Fix button menu lifetime

See merge request !109
parents 9afc8722 5079e3f2
Pipeline #33291 passed with stage
in 11 minutes
......@@ -161,7 +161,7 @@ class AssetWidget(QWidget):
layout.addWidget(self.asset_name_label)
layout.addWidget(self.tab_widget)
edit_menu = QMenu()
edit_menu = QMenu(self)
self.edit_code_action = edit_menu.addAction(self.tr("Code"))
self.edit_documentation_action = edit_menu.addAction(self.tr("Documentation"))
......
......@@ -65,7 +65,7 @@ def create_add_button_layout():
add_pushbutton = QPushButton(QCoreApplication.translate("Dataformat", "Add"))
add_menu = QMenu()
add_menu = QMenu(add_pushbutton)
add_type_action = add_menu.addAction(
QCoreApplication.translate("Dataformat", "Type")
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment