eric6/WebBrowser/History/HistoryDialog.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r aedc309827c7 -r a28338eaf694 eric6/WebBrowser/History/HistoryDialog.py
--- a/eric6/WebBrowser/History/HistoryDialog.py	Wed Sep 25 18:37:35 2019 +0200
+++ b/eric6/WebBrowser/History/HistoryDialog.py	Wed Sep 25 18:48:22 2019 +0200
@@ -51,8 +51,9 @@
         self.__historyManager = manager
         if self.__historyManager is None:
             import WebBrowser.WebBrowserWindow
-            self.__historyManager = \
+            self.__historyManager = (
                 WebBrowser.WebBrowserWindow.WebBrowserWindow.historyManager()
+            )
         
         self.__model = self.__historyManager.historyTreeModel()
         self.__proxyModel = E5TreeSortFilterProxyModel(self)
@@ -94,9 +95,11 @@
         menu = QMenu()
         idx = self.historyTree.indexAt(pos)
         idx = idx.sibling(idx.row(), 0)
-        if idx.isValid() and \
-            not self.historyTree.model().hasChildren(idx) and \
-                len(self.historyTree.selectionModel().selectedRows()) == 1:
+        if (
+            idx.isValid() and
+            not self.historyTree.model().hasChildren(idx) and
+            len(self.historyTree.selectionModel().selectedRows()) == 1
+        ):
             menu.addAction(
                 self.tr("&Open"),
                 self.__openHistoryInCurrentTab)

eric ide

mercurial