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: