--- a/eric6/WebBrowser/CookieJar/CookieExceptionsModel.py Wed Sep 25 18:37:35 2019 +0200 +++ b/eric6/WebBrowser/CookieJar/CookieExceptionsModel.py Wed Sep 25 18:48:22 2019 +0200 @@ -47,8 +47,8 @@ if role == Qt.SizeHintRole: fm = QFontMetrics(QFont()) height = fm.height() + fm.height() // 3 - width = \ - fm.width(self.headerData(section, orientation, Qt.DisplayRole)) + width = fm.width( + self.headerData(section, orientation, Qt.DisplayRole)) return QSize(width, height) if orientation == Qt.Horizontal and role == Qt.DisplayRole: @@ -130,9 +130,11 @@ if parent.isValid() or self.__cookieJar is None: return 0 else: - return len(self.__allowedCookies) + \ - len(self.__blockedCookies) + \ + return ( + len(self.__allowedCookies) + + len(self.__blockedCookies) + len(self.__sessionCookies) + ) def removeRows(self, row, count, parent=None): """