Mercurial > hg > octave-lojdl
changeset 16523:62d8aaf6ba8f
force update of GUI workspace viewer from clear function
* variables.cc (Fclear): Call octave_link::clear_workspace and
octave_link::set_workspace.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 16 Apr 2013 15:05:17 -0400 |
parents | bfff338c56d1 |
children | 6a8e63dadfad |
files | libinterp/interpfcn/variables.cc |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interpfcn/variables.cc +++ b/libinterp/interpfcn/variables.cc @@ -49,6 +49,7 @@ #include "input.h" #include "lex.h" #include "load-path.h" +#include "octave-link.h" #include "oct-map.h" #include "oct-obj.h" #include "ov.h" @@ -2342,6 +2343,8 @@ { do_clear_globals (argv, argc, true); do_clear_variables (argv, argc, true); + + octave_link::clear_workspace (); } else { @@ -2453,6 +2456,10 @@ do_clear_symbols (argv, argc, idx, exclusive); } } + + octave_link::set_workspace ((symbol_table::current_scope () + == symbol_table::top_scope ()), + symbol_table::workspace_info ()); } } }