Import 2017-06-07 23:51:09: master 9e6ea0cd

Author Committer Branch Timestamp Parent
jcfr jcfr master 2015-10-30 15:12:26 master a1e3b9e6
Changeset

BUG: Fix AttributeError in SliceViewAnnotations.updateViewAnnotations()

This commit fixes a regression introduced in r24238 (BUG: Fix
SliceViewAnnotations AttributeError happening on closing Slicer) where
the ivar sliceViewNames (of type 'list') is directly set with the
value returned by app.layoutManager().sliceViewNames() (of type 'tuple').

Considering that tuple are immutable and list mutable, this explained the
error in the function "updateViewAnnotations":

AttributeError: 'tuple' object has no attribute 'append'

By converting the returned tuple to a list, it fixes the issue.

Reviewed-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>

From: Christian Herz <christian.herz@mevis.fraunhofer.de>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24684 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Modules/Scripted/DataProbe/DataProbeLib/SliceViewAnnotations.py Diff File