diff --git a/frappy/gui/mainwindow.py b/frappy/gui/mainwindow.py
index 640cb6f..bb3a9e5 100644
--- a/frappy/gui/mainwindow.py
+++ b/frappy/gui/mainwindow.py
@@ -61,6 +61,10 @@ class QSECNode(QObject):
conn.register_callback(None, self.updateEvent, self.nodeStateChange, self.unhandledMessage)
# provide methods from old baseclient for making other gui code work
+ def reconnect(self):
+ if self.conn.online:
+ self.conn.disconnect(shutdown=False)
+ self.conn.connect()
def getParameters(self, module):
return self.modules[module]['parameters']
@@ -202,6 +206,10 @@ class MainWindow(QMainWindow):
QMessageBox.critical(self.parent(),
'Connecting to %s failed!' % host, str(e))
+ @pyqtSlot()
+ def on_actionReconnect_triggered(self):
+ self.tab.currentWidget().getSecNode().reconnect()
+
def on_actionDetailed_View_toggled(self, toggled):
self._rebuildAdvanced(toggled)
diff --git a/frappy/gui/ui/mainwin.ui b/frappy/gui/ui/mainwin.ui
index 09a340c..05d8084 100644
--- a/frappy/gui/ui/mainwin.ui
+++ b/frappy/gui/ui/mainwin.ui
@@ -27,7 +27,7 @@
@@ -143,6 +144,14 @@
djhfs
+
+
+ Reconnect
+
+
+ Ctrl+R
+
+