From 81dd7a4490cf2e70cd5d9ca431a5a6750999b2ca Mon Sep 17 00:00:00 2001 From: lassoan Date: Sat, 28 Dec 2019 05:33:51 +0000 Subject: [PATCH] BUG: Fix DICOM segmentation object loading git-svn-id: http://svn.slicer.org/Slicer4/trunk@28702 3bd1e089-480b-0410-8dfb-8563597acbee --- Modules/Scripted/DICOMLib/DICOMBrowser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Scripted/DICOMLib/DICOMBrowser.py b/Modules/Scripted/DICOMLib/DICOMBrowser.py index 9eb5d67261f..f603bc3c40b 100644 --- a/Modules/Scripted/DICOMLib/DICOMBrowser.py +++ b/Modules/Scripted/DICOMLib/DICOMBrowser.py @@ -401,7 +401,7 @@ def examineForLoading(self): """For selected plugins, give user the option of what to load""" - self.loadablesByPlugin = self.getLoadablesFromFileLists(self.fileLists) + (self.loadablesByPlugin, loadEnabled) = self.getLoadablesFromFileLists(self.fileLists) self.organizeLoadables() self.loadableTable.setLoadables(self.loadablesByPlugin) self.updateButtonStates() @@ -449,7 +449,7 @@ def progressCallback(progressDialog, progressLabel, progressValue): slicer.util.warningDisplay("Warning: %s\n\nSee python console for error message." % ' '.join(messages), windowTitle="DICOM", parent=self) - return loadablesByPlugin + return loadablesByPlugin, loadEnabled def isFileListInCheckedLoadables(self, fileList): for plugin in self.loadablesByPlugin: @@ -633,8 +633,8 @@ def setup(self): def _setBasicProperties(self): self.layout().setSpacing(9) self.setWindowTitle(self.WINDOW_TITLE) - self.fontMetrics = qt.QFontMetrics(qt.QApplication.font(self)) - self.setMinimumWidth(self.fontMetrics.width(self.WINDOW_TITLE)) + fontMetrics = qt.QFontMetrics(qt.QApplication.font(self)) + self.setMinimumWidth(fontMetrics.width(self.WINDOW_TITLE)) def _addTextLabel(self): label = qt.QLabel(self.WINDOW_TEXT)