This commit is contained in:
Florian Bruhin 2014-05-15 22:02:43 +02:00
parent 1ca80fec8e
commit a70aa212e0
4 changed files with 2 additions and 5 deletions

View File

@ -21,7 +21,6 @@
import unittest
from unittest import TestCase
from unittest.mock import Mock
import qutebrowser.utils.signals as sigutils

View File

@ -18,10 +18,6 @@
"""Utilities regarding signals."""
import re
import logging
from collections import OrderedDict
from PyQt5.QtCore import QObject
def signal_name(sig):

View File

@ -61,6 +61,7 @@ class Progress(QProgressBar):
@pyqtSlot(int)
def on_tab_changed(self, idx):
"""Set the correct value when the current tab changed."""
tab = self.sender().widget(idx)
self.setValue(tab.progress)
if tab.load_status == LoadStatus.loading:

View File

@ -89,6 +89,7 @@ class WebView(QWebView):
self._force_open_target = None
self._destroyed = {}
self._zoom = None
self._has_ssl_errors = False
self._init_neighborlist()
self.progress = 0
self.page_ = BrowserPage(self)