summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-05-10 22:00:42 +0200
committerSeth Hitefield <sdhitefield@gmail.com>2016-05-18 19:02:22 -0400
commitb9eaafa90f4e42f156bb5b9e87d21c16b1b4f4c7 (patch)
tree2094dc10f7e5796060fb277f0d3da0528696a587
parent93684ad812196ae59150912d0193e40b8eeaf769 (diff)
grc: remove some dead code in FlowGraph.what_is_selected()
-rw-r--r--grc/gui/FlowGraph.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 67e28c59b4..02d5197fb0 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -530,13 +530,6 @@ class FlowGraph(Element, _Flowgraph):
selected_element = element.what_is_selected(coor, coor_m)
if not selected_element:
continue
- # hidden disabled connections, blocks and their ports can not be selected
- if Actions.TOGGLE_HIDE_DISABLED_BLOCKS.get_active() and (
- selected_element.is_block and not selected_element.get_enabled() or
- selected_element.is_connection and not selected_element.get_enabled() or
- selected_element.is_port and not selected_element.get_parent().get_enabled()
- ):
- continue
#update the selected port information
if selected_element.is_port:
if not coor_m: selected_port = selected_element