From b9eaafa90f4e42f156bb5b9e87d21c16b1b4f4c7 Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Tue, 10 May 2016 22:00:42 +0200
Subject: grc: remove some dead code in FlowGraph.what_is_selected()

---
 grc/gui/FlowGraph.py | 7 -------
 1 file changed, 7 deletions(-)

(limited to 'grc')

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
-- 
cgit v1.2.3