--- a/Tools/TRPreviewer.py Wed Dec 30 15:40:33 2009 +0000 +++ b/Tools/TRPreviewer.py Wed Dec 30 16:43:09 2009 +0000 @@ -837,9 +837,8 @@ @param act reference to the action that triggered (QAction) """ - idx, ok = act.data() - if ok: - self.__toggleWidget(self.widgets[idx]) + idx = act.data() + self.__toggleWidget(self.widgets[idx]) def __toggleWidget(self, w): """