From 6f685b85540da10fa555aa50b9daf2df7ea9c677 Mon Sep 17 00:00:00 2001 From: Dimitar Tasev <dimtasev@gmail.com> Date: Wed, 23 Jan 2019 10:59:12 +0000 Subject: [PATCH] Make use of superclass func, re #24475 --- qt/python/mantidqt/widgets/instrumentview/presenter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qt/python/mantidqt/widgets/instrumentview/presenter.py b/qt/python/mantidqt/widgets/instrumentview/presenter.py index 2f0da5edaf4..2d045e6014a 100644 --- a/qt/python/mantidqt/widgets/instrumentview/presenter.py +++ b/qt/python/mantidqt/widgets/instrumentview/presenter.py @@ -51,9 +51,7 @@ class InstrumentViewPresenter(ObservingPresenter): but if it isn't - it does nothing """ if self.ws_name == workspace_name: - # if the observer is not cleared here then the C++ object is never freed, - # and observers keep getting created, and triggering on ADS events - self.ads_observer = None + self.clear_observer() self.view.emit_close() def replace_workspace(self, workspace_name, workspace): -- GitLab