From f986325f4ed038932a3038cf033a37229c3bea50 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Sat, 25 May 2019 19:44:54 +0200 Subject: [PATCH] Added icon and shortcut to close project --- nw/gui/mainmenu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nw/gui/mainmenu.py b/nw/gui/mainmenu.py index 3eb9d9b6..c30b6b79 100644 --- a/nw/gui/mainmenu.py +++ b/nw/gui/mainmenu.py @@ -155,8 +155,9 @@ class GuiMainMenu(QMenuBar): self.projMenu.addAction(menuItem) # Project > Close Project - menuItem = QAction("Close Project", self) + menuItem = QAction(QIcon.fromTheme("document-revert"), "Close Project", self) menuItem.setStatusTip("Close Project") + menuItem.setShortcut("Ctrl+Shift+W") menuItem.triggered.connect(lambda : self.theParent.closeProject(False)) self.projMenu.addAction(menuItem)