Mercurial > hg > octave-nkf
changeset 17331:636d75a58cd9
fix running file from editor that is not in the search path (bug #39870)
* main-window.cc(run_file_callback): reimplemented calback for path checking
instead of here (run_file_in_terminal)
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 26 Aug 2013 21:26:25 +0200 |
parents | 219552139c18 |
children | eb7e9a991ffb |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -209,6 +209,12 @@ void main_window::run_file_in_terminal (const QFileInfo& info) { + octave_link::post_event (this, &main_window::run_file_callback, info); +} + +void +main_window::run_file_callback (const QFileInfo& info) +{ QString dir = info.absolutePath (); QString function_name = info.fileName (); function_name.chop (info.suffix ().length () + 1);