Mercurial > hg > octave-terminal
changeset 14784:84d1d9c035c7 gui
Changing the directory one step up now does not use the terminal.
* main-window.cc: Used event instead of sending text to terminal.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Thu, 21 Jun 2012 12:22:01 +0200 |
parents | 0d35ab1cf10c |
children | 7e41fcbb23a4 |
files | gui/src/main-window.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/main-window.cc +++ b/gui/src/main-window.cc @@ -198,11 +198,11 @@ void main_window::current_working_directory_up () { - _terminal->sendText ("cd ..\n"); - _terminal->setFocus (); + octave_link::instance () + ->post_event (new octave_change_directory_event (*this, "..")); + } - void main_window::handle_entered_debug_mode () {