From 0af86db5ec084c3ba10f2865c2568e1f350764a4 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Tue, 9 Jul 2013 12:06:47 -0300 Subject: Bugfix: EIP status button moved to status panel. Also add and update some docstrings. --- src/leap/gui/mainwindow.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/leap/gui') diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py index 52caf08e..8283e72f 100644 --- a/src/leap/gui/mainwindow.py +++ b/src/leap/gui/mainwindow.py @@ -972,7 +972,7 @@ class MainWindow(QtGui.QMainWindow): """ SLOT TRIGGERS: - self.ui.btnEipStartStop.clicked + self._status_panel.start_eip self._action_eip_startstop.triggered or called from _finish_eip_bootstrap @@ -1045,12 +1045,17 @@ class MainWindow(QtGui.QMainWindow): def _stop_eip(self, abnormal=False): """ + SLOT + TRIGGERS: + self._status_panel.stop_eip + self._action_eip_startstop.triggered + or called from _eip_finished + Stops vpn process and makes gui adjustments to reflect the change of state. :param abnormal: whether this was an abnormal termination. :type abnormal: bool - "" """ self.user_stopped_eip = True self._vpn.terminate() @@ -1119,7 +1124,7 @@ class MainWindow(QtGui.QMainWindow): error=True) else: self._status_panel.set_eip_status(self.tr("Disabled")) - self.ui.btnEipStartStop.setEnabled(False) + self._status_panel.set_startstop_enabled(False) def _finish_eip_bootstrap(self, data): """ -- cgit v1.2.3