Mercurial > hg > octave-lyh
diff gui/src/main-window.cc @ 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 | f43916137064 |
children | e3ae0850b105 |
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 () {