mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-05 09:25:37 -05:00
Fix bug when handling a broken tor connection
This commit is contained in:
parent
44b534de6c
commit
f0fd0857ae
@ -380,10 +380,7 @@ class Tab(QtWidgets.QWidget):
|
|||||||
strings._("gui_tor_connection_lost"),
|
strings._("gui_tor_connection_lost"),
|
||||||
strings._("gui_tor_connection_error_settings"),
|
strings._("gui_tor_connection_error_settings"),
|
||||||
)
|
)
|
||||||
|
self.get_mode().handle_tor_broke()
|
||||||
self.share_mode.handle_tor_broke()
|
|
||||||
self.receive_mode.handle_tor_broke()
|
|
||||||
self.website_mode.handle_tor_broke()
|
|
||||||
|
|
||||||
# Process events from the web object
|
# Process events from the web object
|
||||||
if self.mode == self.common.gui.MODE_SHARE:
|
if self.mode == self.common.gui.MODE_SHARE:
|
||||||
|
@ -46,7 +46,10 @@ class GuiBaseTest(unittest.TestCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
# Quit
|
||||||
|
QtCore.QTimer.singleShot(0, cls.gui.close_dialog.accept_button.click)
|
||||||
cls.gui.close()
|
cls.gui.close()
|
||||||
|
|
||||||
cls.gui.cleanup()
|
cls.gui.cleanup()
|
||||||
|
|
||||||
# Shared test methods
|
# Shared test methods
|
||||||
|
Loading…
x
Reference in New Issue
Block a user