From a54443084cb739318a6bd4d47e10660d2b9c79b5 Mon Sep 17 00:00:00 2001 From: Garrett Robinson Date: Tue, 22 Dec 2015 21:36:26 -0500 Subject: [PATCH] Remove unnecessary status_bar.showMessage status_bar.showMessage is already called with the same message at the beginning of start_server, so there is no reason to call it again in the try block. --- onionshare_gui/onionshare_gui.py | 1 - 1 file changed, 1 deletion(-) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 2be92eae..285dae17 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -147,7 +147,6 @@ class OnionShareGui(QtGui.QWidget): self.status_bar.showMessage(strings._('gui_starting_server1', True)) self.app.choose_port() try: - self.status_bar.showMessage(strings._('gui_starting_server1', True)) self.app.start_hidden_service(gui=True) except onionshare.hs.NoTor as e: alert(e.args[0], QtGui.QMessageBox.Warning)