Commit 01a498ae authored by Remi Perenon's avatar Remi Perenon

Merge branch 'bugfix-error_message_when_closing_and_reopening_molecular_viewers' into 'develop'

Bugfix error message when closing and reopening molecular viewers

See merge request !46
parents d8733d71 1682d7e0
Pipeline #4794 passed with stages
in 24 minutes and 6 seconds
* ADDED Neutron Dynamic Total Structure Factor analysis
* ADDED User can now launch a script with qvector parameters instead of saved qvector definition
* FIXED issue #44 An error message appeared when display, close and reopen molecular viewer and animation
* FIXED issue #43 The weights are no more normalized with absolute sum /!\ Modifies at least CCF, DCSF and SSF job behavior
* FIXED issue #42 Plotter units could be inconsistent
* FIXED issue #41 Instrument resolution window froze GUI on macOS
......
......@@ -252,11 +252,16 @@ class MolecularViewerPlugin(ComponentPlugin):
self.SetFocusIgnoringChildren()
def close(self):
# Ensure unsubscription
self.__unsubscribe()
# Clear the viewer
self.clear_universe()
def __del__(self):
# Ensure unsubscription
self.__unsubscribe()
def __unsubscribe(self):
PUBLISHER.unsubscribe(self.msg_set_selection, "msg_set_selection")
PUBLISHER.unsubscribe(self.msg_switch_viewers_state, "msg_switch_viewers_state")
PUBLISHER.unsubscribe(self.msg_clear_selection,'msg_clear_selection')
......
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