diff -r d53474dcb9e6 -r 4f4316e83318 WebBrowser/History/HistoryMenu.py --- a/WebBrowser/History/HistoryMenu.py Sat May 27 18:51:22 2017 +0200 +++ b/WebBrowser/History/HistoryMenu.py Sun May 28 16:59:18 2017 +0200 @@ -288,6 +288,7 @@ E5ModelMenu.__init__(self, parent) self.__tabWidget = tabWidget + self.__mw = parent self.__historyManager = None self.__historyMenuModel = None @@ -371,7 +372,7 @@ act = self.addAction(UI.PixmapCache.getIcon("history.png"), self.tr("Show All History...")) - act.triggered.connect(self.__showHistoryDialog) + act.triggered.connect(self.showHistoryDialog) act = self.addAction(UI.PixmapCache.getIcon("historyClear.png"), self.tr("Clear History...")) act.triggered.connect(self.__clearHistoryDialog) @@ -387,12 +388,12 @@ for act in self.__initialActions: self.addAction(act) - def __showHistoryDialog(self): + def showHistoryDialog(self): """ - Private slot to show the history dialog. + Public slot to show the history dialog. """ from .HistoryDialog import HistoryDialog - dlg = HistoryDialog(self) + dlg = HistoryDialog(self.__mw) dlg.openUrl.connect(self.openUrl) dlg.newTab.connect(self.newTab) dlg.newBackgroundTab.connect(self.newBackgroundTab)