From 2136e85ac7f90f082cda6172cf854ee1de5b61c9 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 19 Sep 2020 16:14:15 +0200 Subject: [PATCH] Fix edit item bug --- nw/gui/mainmenu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nw/gui/mainmenu.py b/nw/gui/mainmenu.py index 9c4ce12c..80433ac7 100644 --- a/nw/gui/mainmenu.py +++ b/nw/gui/mainmenu.py @@ -271,7 +271,7 @@ class GuiMainMenu(QMenuBar): self.aEditItem = QAction("Edit Project Item", self) self.aEditItem.setStatusTip("Change item settings") self.aEditItem.setShortcuts(["Ctrl+E", "F2"]) - self.aEditItem.triggered.connect(self.theParent.editItem) + self.aEditItem.triggered.connect(lambda: self.theParent.editItem(None)) self.projMenu.addAction(self.aEditItem) # Project > Delete