Changeset b1626bea in sasview for src


Ignore:
Timestamp:
Dec 11, 2018 9:01:19 AM (6 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
4cdfa17
Parents:
54398d5
Message:

Fix for QMidArea subwindow closing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    r99f8760 rb1626bea  
    255255        if self._current_perspective: 
    256256            self._current_perspective.setClosable() 
     257            self._workspace.workspace.removeSubWindow(self.subwindow) 
    257258            self._current_perspective.close() 
    258             self._workspace.workspace.removeSubWindow(self._current_perspective) 
    259259        # Default perspective 
    260260        self._current_perspective = Perspectives.PERSPECTIVES[str(perspective_name)](parent=self) 
     
    262262        self.setupPerspectiveMenubarOptions(self._current_perspective) 
    263263 
    264         subwindow = self._workspace.workspace.addSubWindow(self._current_perspective) 
     264        self.subwindow = self._workspace.workspace.addSubWindow(self._current_perspective) 
    265265 
    266266        # Resize to the workspace height 
Note: See TracChangeset for help on using the changeset viewer.