From 9c8be67556504ae500c13631762945100599a787 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Thu, 5 Dec 2024 14:06:52 -0500 Subject: [PATCH] Fix install for scripts, esp. energy calculators Signed-off-by: Geoff Hutchison --- avogadro/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/avogadro/mainwindow.cpp b/avogadro/mainwindow.cpp index 92256ba1..1571fd9a 100644 --- a/avogadro/mainwindow.cpp +++ b/avogadro/mainwindow.cpp @@ -848,6 +848,7 @@ bool MainWindow::addScript(const QString& filePath) QString typePath; int index = types.indexOf(item); + // don't translate these switch (index) { case 0: // commands @@ -859,10 +860,10 @@ bool MainWindow::addScript(const QString& filePath) case 2: typePath = "formatScripts"; break; - case 4: + case 3: typePath = "charges"; break; - case 5: + case 4: typePath = "energy"; break; default: