Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in setDefaultPythonInterpretor() #1583

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion avogadro/molequeue/inputgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void InputGenerator::setScriptFilePath(const QString& scriptFile)

void InputGenerator::reset()
{
m_interpreter->setDefaultPythonInterpretor();
m_interpreter->setDefaultPythonInterpreter();
m_interpreter->setScriptFilePath(QString());
m_moleculeExtension = "Unknown";
m_displayName = QString();
Expand Down
2 changes: 1 addition & 1 deletion avogadro/molequeue/inputgenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public slots:
private:
QtGui::PythonScript* m_interpreter;

void setDefaultPythonInterpretor();
void setDefaultPythonInterpreter();
QByteArray execute(const QStringList& args,
const QByteArray& scriptStdin = QByteArray()) const;
bool parseJson(const QByteArray& json, QJsonDocument& doc) const;
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtgui/interfacescript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void InterfaceScript::setScriptFilePath(const QString& scriptFile)

void InterfaceScript::reset()
{
m_interpreter->setDefaultPythonInterpretor();
m_interpreter->setDefaultPythonInterpreter();
m_interpreter->setScriptFilePath(QString());
m_moleculeExtension = QLatin1String("Unknown");
m_displayName = QString();
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtgui/interfacescript.h
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ public slots:
private:
QtGui::PythonScript* m_interpreter;

void setDefaultPythonInterpretor();
void setDefaultPythonInterpreter();
QByteArray execute(const QStringList& args,
const QByteArray& scriptStdin = QByteArray()) const;
bool parseJson(const QByteArray& json, QJsonDocument& doc) const;
Expand Down
6 changes: 3 additions & 3 deletions avogadro/qtgui/pythonscript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ PythonScript::PythonScript(const QString& scriptFilePath_, QObject* parent_)
: QObject(parent_), m_debug(!qgetenv("AVO_PYTHON_SCRIPT_DEBUG").isEmpty()),
m_scriptFilePath(scriptFilePath_), m_process(nullptr)
{
setDefaultPythonInterpretor();
setDefaultPythonInterpreter();
}

PythonScript::PythonScript(QObject* parent_)
: QObject(parent_), m_debug(!qgetenv("AVO_PYTHON_SCRIPT_DEBUG").isEmpty()),
m_process(nullptr)
{
setDefaultPythonInterpretor();
setDefaultPythonInterpreter();
}

PythonScript::~PythonScript() {}
Expand All @@ -37,7 +37,7 @@ void PythonScript::setScriptFilePath(const QString& scriptFile)
m_scriptFilePath = scriptFile;
}

void PythonScript::setDefaultPythonInterpretor()
void PythonScript::setDefaultPythonInterpreter()
{
if (m_pythonInterpreter.isEmpty()) {
m_pythonInterpreter =
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtgui/pythonscript.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AVOGADROQTGUI_EXPORT PythonScript : public QObject
* - The "interpreters/python" QSettings value
* - The path specified in avogadropython.h.
*/
void setDefaultPythonInterpretor();
void setDefaultPythonInterpreter();

/**
* Start a new process to execute:
Expand Down
Loading