diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2015-09-08 12:19:19 -0400 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-11-11 21:39:35 +0100 |
commit | 2252b5caa205c792ac70a16e956b22cfc2d781df (patch) | |
tree | ef5d68e3511dfecc2166c0b6d6e3fda10d3366be /grc/python | |
parent | 2fee267dfee11bd687b4d780cb6b82924d59af3c (diff) |
grc: update PropsDialog on external param change
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/Block.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/Block.py b/grc/python/Block.py index accfd21913..f5f406449e 100644 --- a/grc/python/Block.py +++ b/grc/python/Block.py @@ -117,7 +117,7 @@ class Block(_Block, _GUIBlock): check_generate_mode('WX GUI', BLOCK_FLAG_NEED_WX_GUI, ('wx_gui',)) check_generate_mode('QT GUI', BLOCK_FLAG_NEED_QT_GUI, ('qt_gui', 'hb_qt_gui')) if self._epy_reload_error: - self.add_error_message(str(self._epy_reload_error)) + self.get_param('_source_code').add_error_message(str(self._epy_reload_error)) def rewrite(self): """ @@ -245,7 +245,7 @@ class Block(_Block, _GUIBlock): blk_io = epy_block_io.extract(src) except Exception as e: - self._epy_reload_error = ValueError('Source code eval:\n' + str(e)) + self._epy_reload_error = ValueError(str(e)) try: # load last working block io blk_io = epy_block_io.BlockIO(*eval(param_blk.get_value())) except: |