# HG changeset patch # User Torsten # Date 1377545185 -7200 # Node ID 636d75a58cd9cc8309cfa0e9763863b298cc11dd # Parent 219552139c185d5ac53ddc1fd069758837399f8a 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) diff --git a/libgui/src/main-window.cc b/libgui/src/main-window.cc --- 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);