Skip to content

WIP: check for uninitialized DICOM db location

Sam Horvath requested to merge github/fork/fedorov/4424-fix-dicomdb-init into master

Created by: fedorov

DatabaseDirectory setting is not available on first start of Slicer. As described in https://issues.slicer.org/view.php?id=4424, this can lead to the default location be non-writeable, without user being notified. This commit aims to fix this problem, but not fully resolves the issue. Current runtime error:

Traceback (most recent call last):
File
"/Applications/Slicer.app/Contents/lib/Slicer-4.7/qt-scripted-modules/DICOM.py",
line 333, in setup
      slicer.dicomDatabase.connect('databaseChanged()', self.onDatabaseChanged)
      AttributeError: 'NoneType' object has no attribute 'connect'

I would use help from someone more familiar with this code!

Merge request reports