Mercurial > octave-libgccjit
diff libgui/src/main-window.cc @ 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 | 352b442a72a5 |
children | d0fa3568eb5d |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Sun Aug 25 09:26:37 2013 -0400 +++ b/libgui/src/main-window.cc Mon Aug 26 21:26:25 2013 +0200 @@ -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);