# HG changeset patch # User Jacob Dawid # Date 1342790122 14400 # Node ID 3ad3638790152ef530079e1892a2913c6be6a5fe # Parent 4b8fa3ce62580e2092669ec29f23ca6ba133e026 Fixed bug with error message about missing arguments when running a file. * file-editor-tab.cc (run_file): Removed argument on run command. diff --git a/gui/src/m-editor/file-editor-tab.cc b/gui/src/m-editor/file-editor-tab.cc --- a/gui/src/m-editor/file-editor-tab.cc +++ b/gui/src/m-editor/file-editor-tab.cc @@ -719,14 +719,14 @@ QFileInfo file_info (_file_name); QString path = file_info.absolutePath (); - QString current_path = QString::fromStdString + //QString current_path = QString::fromStdString (octave_link::instance ()->get_last_working_directory ()); QString function_name = file_info.fileName (); // We have to cut off the suffix, because octave appends it. function_name.chop (file_info.suffix ().length () + 1); _file_editor->terminal ()->sendText (QString ("cd \'%1\'\n%2\n") - .arg(path).arg (function_name).arg (current_path)); + .arg(path).arg (function_name)); // TODO: Sending a run event crashes for long scripts. Find out why. // octave_link::instance () // ->post_event (new octave_run_file_event (*this, _file_name.toStdString ())); diff --git a/gui/src/main-window.cc b/gui/src/main-window.cc --- a/gui/src/main-window.cc +++ b/gui/src/main-window.cc @@ -386,8 +386,6 @@ "There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or" "FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.\n" "\n" - "Octave was configured for \"x86_64-pc-linux-gnu\".\n" - "\n" "Additional information about Octave is available at http://www.octave.org.\n" "\n" "Please contribute if you find this software useful."