Fix bug when handling a broken tor connection

This commit is contained in:
Micah Lee 2019-11-08 21:36:54 +08:00
parent 44b534de6c
commit f0fd0857ae
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 4 additions and 4 deletions

View File

@ -380,10 +380,7 @@ class Tab(QtWidgets.QWidget):
strings._("gui_tor_connection_lost"),
strings._("gui_tor_connection_error_settings"),
)
self.share_mode.handle_tor_broke()
self.receive_mode.handle_tor_broke()
self.website_mode.handle_tor_broke()
self.get_mode().handle_tor_broke()
# Process events from the web object
if self.mode == self.common.gui.MODE_SHARE:

View File

@ -46,7 +46,10 @@ class GuiBaseTest(unittest.TestCase):
@classmethod
def tearDownClass(cls):
# Quit
QtCore.QTimer.singleShot(0, cls.gui.close_dialog.accept_button.click)
cls.gui.close()
cls.gui.cleanup()
# Shared test methods