Commit d898427a authored by Jason Milhone's avatar Jason Milhone
Browse files

Fixed bug when opening a config with bad server

App would lock if there was a bad server address after opening a new
configuration file.  Now, it should move on gracefully and inform the
user that it couldn't access the server.
parent c406d9eb
......@@ -321,8 +321,13 @@ class MyWindow(QtWidgets.QMainWindow):
if self.shot_number is None:
self.shot_number = mdsh.get_current_shot(self.server, self.tree)
self.spinBox.setValue(self.shot_number)
self.status.setText("Idle")
if self.shot_number is None:
self.spinBox.setValue(0)
self.status.setText("Error Accessing Server")
else:
self.spinBox.setValue(self.shot_number)
self.status.setText("Idle")
# Start up the new MDSplus event if it needs to be
self.autoUpdate_action.setChecked(update_state)
self.change_auto_update(update_state)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment