--- a/dialogs/FBDBlockDialog.py Wed Jul 31 10:45:07 2013 +0900
+++ b/dialogs/FBDBlockDialog.py Mon Nov 18 12:12:31 2013 +0900
@@ -160,6 +160,11 @@
# Extract block type defined in parameters
blocktype = values.get("type", None)
+ # Select block type in library panel
+ if blocktype is not None:
+ self.LibraryPanel.SelectTreeItem(blocktype,
+ values.get("inputs", None))
+
# Define regular expression for determine if block name is block
# default name
default_name_model = GetBlockTypeDefaultNameModel(blocktype)
@@ -186,11 +191,6 @@
if control is not None:
control.SetValue(value)
- # Select block type in library panel
- if blocktype is not None:
- self.LibraryPanel.SelectTreeItem(blocktype,
- values.get("inputs", None))
-
# Refresh preview panel
self.RefreshPreview()