def set_action_execute_default(self):
        if self.controller:
            if self.controller.current_pipeline:
                return len(self.controller.current_pipeline.modules) > 0
        return False
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/version_view.py/QVersionTreeView.set_action_execute_default/original