summaryrefslogtreecommitdiff
path: root/grc/base/Platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/base/Platform.py')
-rw-r--r--grc/base/Platform.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/base/Platform.py b/grc/base/Platform.py
index 3050e5e475..02d6d23192 100644
--- a/grc/base/Platform.py
+++ b/grc/base/Platform.py
@@ -129,7 +129,9 @@ class Platform(_Element):
if block_key not in self.get_block_keys():
print >> sys.stderr, 'Warning: Block key "%s" not found when loading category tree.'%(block_key)
continue
- block_tree.add_block(parent, self.get_block(block_key))
+ block = self.get_block(block_key)
+ #if it exists, the block's category overrides the block tree
+ if not block.get_category(): block_tree.add_block(parent, block)
#load the block tree
for block_tree_file in self._block_tree_files:
#recursivly add all blocks in the tree