Skip to content

Commit

Permalink
update_connections: do not run mark_list_depth on invalid pipeline
Browse files Browse the repository at this point in the history
This was triggered by the upgrade code

gui/pipeline_view.py:
 - update_connections:
   Check if valid before calling mark_list_depth
  • Loading branch information
rexissimus committed Sep 2, 2014
1 parent 54510d0 commit 444b9d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vistrails/gui/pipeline_view.py
Expand Up @@ -2595,10 +2595,11 @@ def add_tmp_module(self, desc):
return self.tmp_module_item

def update_connections(self):
for module_id, list_depth in \
if self.current_pipeline.is_valid:
for module_id, list_depth in \
self.controller.current_pipeline.mark_list_depth():
if module_id in self.modules:
self.modules[module_id].module.list_depth = list_depth
if module_id in self.modules:
self.modules[module_id].module.list_depth = list_depth
for c in self.connections.itervalues():
c.setupConnection()

Expand Down

0 comments on commit 444b9d0

Please sign in to comment.