Skip to content

Commit

Permalink
BUG: Ensure window geometry and position is restored
Browse files Browse the repository at this point in the history
List of Slicer changes:

$ git shortlog b61447b304..68b5cd0e19 --no-merges
Jean-Christophe Fillion-Robin (1):
      [Backport PR-5611] ENH: Add readSettings/writeSetting to qSlicerMainWindow public API

Fixes #62
  • Loading branch information
jcfr committed Apr 21, 2021
1 parent 693a714 commit 2150063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -13,7 +13,7 @@ if(NOT DEFINED slicersources_SOURCE_DIR)
# Download Slicer sources and set variables slicersources_SOURCE_DIR and slicersources_BINARY_DIR
FetchContent_Populate(slicersources
GIT_REPOSITORY git://github.com/KitwareMedical/Slicer
GIT_TAG b61447b304b1c44f39ecf10b505daba6a9be3b47 # SlicerQReads-v4.13.0-2021-02-04-11cbb38732
GIT_TAG 68b5cd0e196c10ab9fbdcaacac38d15f896f18a8 # SlicerQReads-v4.13.0-2021-02-04-11cbb38732
GIT_PROGRESS 1
)
else()
Expand Down
1 change: 1 addition & 0 deletions Modules/Scripted/QReads/QReads.py
Expand Up @@ -52,6 +52,7 @@ class QReadsWidget(ScriptedLoadableModuleWidget, VTKObservationMixin):
class CloseApplicationEventFilter(qt.QWidget):
def eventFilter(self, object, event):
if event.type() == qt.QEvent.Close:
slicer.util.mainWindow().writeSettings()
event.accept()
return True
return False
Expand Down

0 comments on commit 2150063

Please sign in to comment.