#4285 Octave : Rename to absoluteFileName

This commit is contained in:
Magne Sjaastad
2019-04-04 21:18:20 +02:00
parent b8ff8a2de8
commit fd774bec39
8 changed files with 11 additions and 11 deletions

View File

@@ -61,13 +61,13 @@ void RicExecuteScriptFeature::onActionTriggered(bool isChecked)
{
// TODO: Must rename RimCalcScript::absolutePath to absoluteFileName, as the code below is confusing
// absolutePath() is a function in QFileInfo
QFileInfo fi(calcScript->absolutePath());
QFileInfo fi(calcScript->absoluteFileName());
QString octaveFunctionSearchPath = fi.absolutePath();
QStringList arguments = app->octaveArguments();
arguments.append("--path");
arguments << octaveFunctionSearchPath;
arguments << calcScript->absolutePath();
arguments << calcScript->absoluteFileName();
RiaApplication::instance()->launchProcess(octavePath, arguments);
}