From 2d2a6eb31f3f693f29ed8d5482d67a74169d94f0 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 16 May 2017 11:50:13 -0700 Subject: [PATCH] Fixed typo in signal name, error_connecting_to_tor instead of error_connection_to_tor --- onionshare_gui/tor_connection_dialog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/onionshare_gui/tor_connection_dialog.py b/onionshare_gui/tor_connection_dialog.py index 2a6cfd57..5e072e8e 100644 --- a/onionshare_gui/tor_connection_dialog.py +++ b/onionshare_gui/tor_connection_dialog.py @@ -60,7 +60,7 @@ class TorConnectionDialog(QtWidgets.QProgressDialog): t.tor_status_update.connect(self.tor_status_update) t.connected_to_tor.connect(self.connected_to_tor) t.canceled_connecting_to_tor.connect(self.canceled_connecting_to_tor) - t.error_connection_to_tor.connect(self.error_connection_to_tor) + t.error_connecting_to_tor.connect(self.error_connecting_to_tor) t.start() # Wait for the thread to start @@ -82,8 +82,8 @@ class TorConnectionDialog(QtWidgets.QProgressDialog): # Cancel connecting to Tor self.cancel() - def error_connection_to_tor(self): - common.log('TorConnectionDialog', 'error_connection_to_tor') + def error_connecting_to_tor(self): + common.log('TorConnectionDialog', 'error_connecting_to_tor') # Cancel connecting to Tor self.cancel() @@ -98,7 +98,7 @@ class TorConnectionThread(QtCore.QThread): tor_status_update = QtCore.pyqtSignal(str, str) connected_to_tor = QtCore.pyqtSignal() canceled_connecting_to_tor = QtCore.pyqtSignal() - error_connection_to_tor = QtCore.pyqtSignal(str) + error_connecting_to_tor = QtCore.pyqtSignal(str) def __init__(self, dialog, settings, onion): super(TorConnectionThread, self).__init__() @@ -122,7 +122,7 @@ class TorConnectionThread(QtCore.QThread): self.canceled_connecting_to_tor.emit() except Exception as e: - self.error_connection_to_tor.emit(e.args[0]) + self.error_connecting_to_tor.emit(e.args[0]) def _tor_status_update(self, progress, summary): self.tor_status_update.emit(progress, summary)