diff --git a/glue/viewers/profile/qt/profile_tools.py b/glue/viewers/profile/qt/profile_tools.py index f1f96154a..7a6fecb3d 100644 --- a/glue/viewers/profile/qt/profile_tools.py +++ b/glue/viewers/profile/qt/profile_tools.py @@ -72,12 +72,13 @@ def __init__(self, parent=None): super(ProfileTools, self).__init__(parent=parent) + self._viewer = weakref.ref(parent) + self.ui = load_ui('profile_tools.ui', self, directory=os.path.dirname(__file__)) fix_tab_widget_fontsize(self.ui.tabs) - self._viewer = weakref.ref(parent) self.image_viewer = None @property