Fixed handling of actions in the web browser NG with hidden main menu.

Sun, 25 Jun 2017 16:17:00 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Jun 2017 16:17:00 +0200
changeset 5768
6f4d7d02cb1e
parent 5767
e899248519e0
child 5769
944c04cec861

Fixed handling of actions in the web browser NG with hidden main menu.

WebBrowser/WebBrowserWindow.py file | annotate | diff | comparison | revisions
--- a/WebBrowser/WebBrowserWindow.py	Sun Jun 25 14:15:48 2017 +0200
+++ b/WebBrowser/WebBrowserWindow.py	Sun Jun 25 16:17:00 2017 +0200
@@ -1916,6 +1916,7 @@
         menu.addAction(self.closeAllAct)
         menu.addSeparator()
         menu.addAction(self.exitAct)
+        self.addActions(menu.actions())
         
         menu = mb.addMenu(self.tr('&Edit'))
         menu.addAction(self.undoAct)
@@ -1931,6 +1932,7 @@
         menu.addAction(self.findAct)
         menu.addAction(self.findNextAct)
         menu.addAction(self.findPrevAct)
+        self.addActions(menu.actions())
         
         menu = mb.addMenu(self.tr('&View'))
         menu.addAction(self.stopAct)
@@ -1951,6 +1953,7 @@
         menu.addSeparator()
         menu.addAction(self.pageSourceAct)
         menu.addAction(self.fullScreenAct)
+        self.addActions(menu.actions())
         
         from .History.HistoryMenu import HistoryMenu
         self.historyMenu = HistoryMenu(self, self.__tabWidget)
@@ -1967,6 +1970,7 @@
         historyActions.append(self.forwardAct)
         historyActions.append(self.homeAct)
         self.historyMenu.setInitialActions(historyActions)
+        self.addActions(historyActions)
         
         from .Bookmarks.BookmarksMenu import BookmarksMenuBarMenu
         self.bookmarksMenu = BookmarksMenuBarMenu(self)
@@ -2058,6 +2062,7 @@
         menu.addAction(self.aboutQtAct)
         menu.addSeparator()
         menu.addAction(self.whatsThisAct)
+        self.addActions(menu.actions())
     
     def __initSuperMenu(self):
         """

eric ide

mercurial