Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
de4fdd94
Commit
de4fdd94
authored
Mar 20, 2018
by
Remi Perenon
Browse files
Modifying pluging MolecularViewerPlugin to unsubscribe from publisher on instance destruction
parent
8235f09d
Pipeline
#3830
passed with stages
in 12 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/Plugins/MolecularViewerPlugin.py
View file @
de4fdd94
...
...
@@ -273,6 +273,8 @@ class MolecularViewerPlugin(ComponentPlugin):
self
.
clear_universe
()
def
__del__
(
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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment